Skip to content

Commit 9b8fa3f

Browse files
author
vvo
committed
fix: no need for a flag in refinementList refine()
Also, retried stopPropagation stopImmediatePro.. etc. No luck
1 parent 268d51d commit 9b8fa3f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

components/RefinementList.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,16 @@ class RefinementList extends React.Component {
2424
}
2525

2626
var parent = e.target;
27-
var checkboxInLabel = false;
2827

2928
while (parent !== e.currentTarget) {
3029
if (parent.tagName === 'LABEL' && parent.querySelector('input[type="checkbox"]')) {
31-
checkboxInLabel = true;
3230
return;
3331
}
3432

3533
parent = parent.parentNode;
3634
}
3735

38-
if (checkboxInLabel === false) {
39-
this.refine(value);
40-
}
36+
this.refine(value);
4137
}
4238

4339
render() {

0 commit comments

Comments
 (0)