bug fix chevron not disappearing after window resize back to desktop

This commit is contained in:
BFlat committed 2024-02-23 13:05:06 +07:00
1 parent 3596a13b4b
commit efaff62028
1 file changed
+8
@@ -59,6 +59,14 @@ export default function SelectionBubbles({
}
}, [options]);
useEffect(() => {
const handleResize = () => {
handleScroll();
};
window.addEventListener("resize", handleResize);
return () => window.removeEventListener("resize", handleResize);
}, []);
return (
<div
className={`selection-bubbles-wrapper ${