Looks like controlComponents option is no longer respected.
The following code now gives A form label must be associated with a control warning:
/* 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
controlComponentsoption is no longer respected.The following code now gives
A form label must be associated with a controlwarning:Started happening after upgrade from 6.7.1 to 6.8.0.