diff --git a/src/rules/label-has-for.js b/src/rules/label-has-for.js index 824c21a4f..561430691 100644 --- a/src/rules/label-has-for.js +++ b/src/rules/label-has-for.js @@ -34,7 +34,7 @@ function validateNesting(node) { while (queue.length) { child = queue.shift(); opener = child.openingElement; - if (child.type === 'JSXElement' && opener && (opener.name.name === 'input' || opener.name.name === 'textarea')) { + if (child.type === 'JSXElement' && opener && (opener.name.name === 'input' || opener.name.name === 'textarea' || opener.name.name === 'select')) { return true; } if (child.children) {