Answers for "A form label must be associated with a control."

0

A form label must be associated with a control.

{
    ....
    "rules": {
      "jsx-a11y/label-has-associated-control": ["error", {
        "required": {
          "some": ["nesting", "id"]
        }
      }],
      "jsx-a11y/label-has-for": ["error", {
        "required": {
          "some": ["nesting", "id"]
        }
      }]
    },
    ...
}
Posted by: Guest on July-12-2021

Code answers related to "A form label must be associated with a control."

Browse Popular Code Answers by Language