We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85cee72 commit 8529385Copy full SHA for 8529385
instantsearch.js/facet-dropdown/src/Dropdown.js
@@ -90,7 +90,7 @@ export function createDropdown(
90
setTimeout(() => {
91
state.windowClickListener = event => {
92
// Close if the outside is clicked
93
- if (!rootElem.contains(event.target)) {
+ if (!event.composedPath().includes(rootElem)) {
94
close();
95
}
96
};
0 commit comments