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
labelAttributes is a list of attributes to check on the control component and its children for a label. Use this if you have a custom component that uses a string passed on a prop to render an HTML label, for example.
Unfortunately this only checks children elements of the component and won't allow for setups like this:
<Form.Itemlabel="..."><Input/></Form.Item>
The text was updated successfully, but these errors were encountered:
At some complexity of abstractions there's not much static analysis can do for you. Is <Input /> a placeholder here, or is it an actual component you're using?
From https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/main/docs/rules/control-has-associated-label.md#rule-options
Unfortunately this only checks children elements of the component and won't allow for setups like this:
The text was updated successfully, but these errors were encountered: