Fix event propagation down the chain

This commit is contained in:
Dane Everitt 2019-08-05 21:18:32 -07:00
parent f84e3c9f22
commit f7def01442
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
2 changed files with 35 additions and 33 deletions

View file

@ -114,7 +114,7 @@ export default ({ uuid }: { uuid: string }) => {
<CSSTransition timeout={250} in={menuVisible} unmountOnExit={true} classNames={'fade'}>
<div
ref={menu}
onClick={() => setMenuVisible(false)}
onClick={e => { e.stopPropagation(); setMenuVisible(false); }}
className={'absolute bg-white p-2 rounded border border-neutral-700 shadow-lg text-neutral-500 min-w-48'}
>
<div