Open EvgenyOrekhov opened 10 months ago
Looks like controlComponents option is no longer respected.
controlComponents
The following code now gives A form label must be associated with a control warning:
A form label must be associated with a control
/* eslint "jsx-a11y/label-has-associated-control": [ "error", { "controlComponents": ["InputComponent"] }, ], */ function MyComponent() { return ( <label> My label <InputComponent /> </label> ); }
Started happening after upgrade from 6.7.1 to 6.8.0.
Looks like
controlComponents
option is no longer respected.The following code now gives
A form label must be associated with a control
warning:Started happening after upgrade from 6.7.1 to 6.8.0.