You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| onEscapePress |`function`| required | Function to call when user presses the Escape key |
61
-
| onOutsideClick |`function`| required | Function to call when user clicks outside of the overlay |
62
-
| ignoreClickRefs |`React.RefObject<HTMLElement> []`| optional | Refs to click clicks on in the `onOutsideClick` function, useful for ignoring clicks on elements that trigger the overlay visibility. |
63
-
| initialFocusRef |`React.RefObject<HTMLElement>`| optional | Ref to focus when overlay is mounted. |
64
-
| returnFocusRef |`React.RefObject<HTMLElement>`| required | Ref to focus when overlay is unmounted. Important for accessibility. |
| onEscapePress |`function`| required | Function to call when user presses the Escape key |
62
+
| onOutsideClick |`function`| required | Function to call when user clicks outside of the overlay |
63
+
| ignoreClickRefs |`React.RefObject<HTMLElement> []`| optional | Refs to click clicks on in the `onOutsideClick` function, useful for ignoring clicks on elements that trigger the overlay visibility. |
64
+
| initialFocusRef |`React.RefObject<HTMLElement>`| optional | Ref to focus when overlay is mounted. |
65
+
| returnFocusRef |`React.RefObject<HTMLElement>`| required | Ref to focus when overlay is unmounted. Important for accessibility. |
66
+
| preventFocusOnOpen | `boolean` | optional | When true, prevents focus when overlay is mounted, even if `initialFocusRef` is present.
0 commit comments