fix(season select): propagate the event on mousedown to close the multiselect

This commit is contained in:
Botzy 2025-01-30 14:44:14 +02:00
parent 56d750c960
commit ce8ce7404c

View file

@ -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);