👌 make dropdown list toggle on enter/click
This commit is contained in:
parent
7272afe184
commit
ab93a4c85d
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ export const useModalBehavior = (hideOverlay) => {
|
|||
// Return values
|
||||
const setRef = (r) => { ref.current = r; };
|
||||
const [visible, setVisible] = useState(true);
|
||||
const trigger = () => setVisible(true);
|
||||
const trigger = () => setVisible(!visible);
|
||||
|
||||
const hide = () => setVisible(false);
|
||||
|
||||
|
|
Loading…
Reference in a new issue