mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-18 04:42:01 +00:00
fix(season select): propagate the event on mousedown to close the multiselect
This commit is contained in:
parent
56d750c960
commit
ce8ce7404c
1 changed files with 2 additions and 2 deletions
|
|
@ -12,8 +12,8 @@ const useOutsideClick = (ref: RefObject<HTMLDivElement>, callback: () => void) =
|
|||
}
|
||||
};
|
||||
|
||||
document.addEventListener('mousedown', handleClickOutside);
|
||||
document.addEventListener('touchstart', handleClickOutside);
|
||||
document.addEventListener('mousedown', handleClickOutside, true);
|
||||
document.addEventListener('touchstart', handleClickOutside, true);
|
||||
|
||||
return () => {
|
||||
document.removeEventListener('mousedown', handleClickOutside);
|
||||
|
|
|
|||
Loading…
Reference in a new issue