fix: revert changes to closeOnBlur and add closeOnClickOutside

This commit is contained in:
Antonella Sgarlatta
2021-05-04 15:44:12 -03:00
parent 15db4767f5
commit 45357c1976
3 changed files with 12 additions and 16 deletions

View File

@@ -6,10 +6,7 @@ import { useRef } from 'preact/hooks';
type Props = {
appState: AppState;
closeOnBlur: (event: {
relatedTarget: EventTarget | null;
target: EventTarget | null;
}) => void;
closeOnBlur: (event: { relatedTarget: EventTarget | null }) => void;
setLockCloseOnBlur: (lock: boolean) => void;
};