We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c492684 commit 1a10e78Copy full SHA for 1a10e78
docs/examples/simple.jsx
@@ -27,6 +27,7 @@ export default function Simple() {
27
<div style={{ height: 100 }} />
28
<div>
29
<Dropdown
30
+ autoFocus
31
trigger={['click']}
32
overlay={menu}
33
animation="slide-up"
src/hooks/useAccessibility.ts
@@ -59,7 +59,7 @@ export default function useAccessibility({
59
window.addEventListener('keydown', handleKeyDown);
60
if (autoFocus) {
61
// FIXME: hack with raf
62
- raf(focusMenu);
+ raf(focusMenu, 3);
63
}
64
return () => {
65
window.removeEventListener('keydown', handleKeyDown);
0 commit comments