Mirror: React hooks for accessible, common web interactions. UI super powers without the UI.

Update useDismissable.ts (#1)

Changed files
+1 -1
src
+1 -1
src/useDismissable.ts
···
document.removeEventListener('touchstart', onClick);
document.removeEventListener('keydown', onKey);
};
-
}, [ref, hasPriority, disabled, focusLoss]);
+
}, [ref.current, hasPriority, disabled, focusLoss]);
}