Show warning in console when unsupported combination of props is used

Offen
#668 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
48/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
react, typescript
Bereich
frontend

Rechercherichtung

Start by locating FileInputField, Select, and TextField, then trace how each handles helpText and validationText inside InputGroup. Check whether other components have the same unsupported prop behavior. Done when unsupported combinations produce a console warning; the issue does not name tests or specific files to run.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Some props of some components are not supported in certain contexts. For example, TextField does not render helpText and validationText in the context of InputGroup. This is well documented, but we can improve the DX by displaying a warning in console when such situation occurs.

It applies to:

  • FileInputField
  • Select
  • TextField
  • maybe more?
Vorherrschende Sprache
TypeScript
Sterne
23
Forks
10
Ø Merge
5 T. 12 Std.
Gemergte PRs (30 T.)
9

Entwicklungsumgebung

In Codespaces öffnen

Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.

  • Kein Dockerfile und keine Docker-Compose-Datei
  • Keine Pull-Request-Vorlage
  • Kein Beitragsleitfaden

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus react-ui-org/react-ui

Alle Issues in react-ui-org/react-ui

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.