You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Grommet's Select component appends an "__input" to the input's id. This is not obvious to developers and causes form field labels to reference the input incorrectly.
What category of rule is this? (place an "X" next to just one item)
[x] Warns about a potential error (problem)
[ ] Suggests an alternate way of doing something (suggestion)
[ ] Other (please specify:)
Provide 2-3 code examples that this rule will warn about:
Incorrect:
<FormFieldhtmlFor="region"name="region"label="Region"help="Available regions are dependent on selected instance type(s)"required><Selectid="region"name="region"options={regionOptions}/></FormField>
Correct:
<FormFieldhtmlFor="region__input"name="region"label="Region"help="Available regions are dependent on selected instance type(s)"required><Selectid="region"name="region"options={regionOptions}/></FormField>
Why should this rule be included in eslint-plugin-grommet?
The text was updated successfully, but these errors were encountered:
Please describe what the rule should do:
Grommet's Select component appends an "__input" to the input's id. This is not obvious to developers and causes form field labels to reference the input incorrectly.
What category of rule is this? (place an "X" next to just one item)
[x] Warns about a potential error (problem)
[ ] Suggests an alternate way of doing something (suggestion)
[ ] Other (please specify:)
Provide 2-3 code examples that this rule will warn about:
Incorrect:
Correct:
Why should this rule be included in eslint-plugin-grommet?
The text was updated successfully, but these errors were encountered: