mirror of
https://github.com/umami-software/umami.git
synced 2026-02-08 06:37:18 +01:00
New components, convert hooks to components, bug fixes.
This commit is contained in:
parent
a2db27894f
commit
9d8a2406e1
21 changed files with 330 additions and 181 deletions
|
|
@ -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]);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue