Skip to content

Commit

Permalink
Merge branch 'master' into greenkeeper/flow-bin-0.100.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jessebeach authored Jun 1, 2019
2 parents 7cf3213 + 8cab8ec commit 025ba2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rules/label-has-for.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 025ba2a

Please sign in to comment.