()
+
+ return (
+ <>
+ OverlayProps
+
+ Disable `onClickOutside` and `onEscape`. Only way to close is to select an action which takes focus on a
+ TextInput
+
+
+ Menu
+ {
+ /* do nothing, keep it open*/
+ }}
+ onEscape={() => {
+ /* do nothing, keep it open*/
+ }}
+ returnFocusRef={inputRef}
+ >
+
+ Option 1
+ Option 2
+ Option 2
+ Option 2
+ Option 2
+ Option 2
+ Option 2
+ Option 2
+
+
+
+
+
+
+ >
+ )
+}
+OverlayProps.storyName = 'Overlay Props'
+
export function UnexpectedSelectionVariant(): JSX.Element {
return (
<>
@@ -536,14 +589,15 @@ export function UnexpectedSelectionVariant(): JSX.Element {
Menu
-
-
- Copy link
- Quote reply
- Edit comment
-
- Delete file
-
+
+
+ Copy link
+ Quote reply
+ Edit comment
+
+ Delete file
+
+
>
)