New components, convert hooks to components, bug fixes.
This commit is contained in:
1 parent
a2db27894f
commit
9d8a2406e1
21 files changed
+330
-181
No files matched your search
@@ -23,10 +23,10 @@ export default function DropDown({ value, options = [], onChange, className }) {
|
||||
}
|
||||
}
|
||||
|
||||
document.body.addEventListener('click', hideMenu);
|
||||
document.addEventListener('click', hideMenu);
|
||||
|
||||
return () => {
|
||||
document.body.removeEventListener('click', hideMenu);
|
||||
document.removeEventListener('click', hideMenu);
|
||||
};
|
||||
}, [ref]);
|
||||
|
||||
|
||||
Reference in new issue
Block a user