From 3efbaa7093cb0c280fa723ff5335898c54d69d11 Mon Sep 17 00:00:00 2001 From: Huynh Duc Duy Date: Wed, 12 Jun 2024 14:29:40 +0700 Subject: [PATCH] add `button` to list of elements that can be associated with a `label` --- src/rules/label-has-associated-control.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rules/label-has-associated-control.js b/src/rules/label-has-associated-control.js index 7ee98ef65..7f98742bd 100644 --- a/src/rules/label-has-associated-control.js +++ b/src/rules/label-has-associated-control.js @@ -69,6 +69,7 @@ export default ({ 'progress', 'select', 'textarea', + 'button', ].concat((options.controlComponents || [])); // Prevent crazy recursion. const recursionDepth = Math.min(