Skip to content

Commit

Permalink
fix(facet-dropdown): dropdown closes even if clicked inside (#459)
Browse files Browse the repository at this point in the history
  • Loading branch information
aymeric-giraudet authored Jul 26, 2023
1 parent 85cee72 commit 8529385
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion instantsearch.js/facet-dropdown/src/Dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export function createDropdown(
setTimeout(() => {
state.windowClickListener = event => {
// Close if the outside is clicked
if (!rootElem.contains(event.target)) {
if (!event.composedPath().includes(rootElem)) {
close();
}
};
Expand Down

0 comments on commit 8529385

Please sign in to comment.