bits-ui 1.3.12 → 1.3.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
// the default menu behavior of handling outside interactions on the trigger
|
|
24
24
|
onEscapeKeydown = noop,
|
|
25
25
|
forceMount = false,
|
|
26
|
+
trapFocus = true,
|
|
26
27
|
...restProps
|
|
27
28
|
}: ContextMenuContentProps = $props();
|
|
28
29
|
|
|
@@ -76,7 +77,7 @@
|
|
|
76
77
|
onEscapeKeydown={handleEscapeKeydown}
|
|
77
78
|
{onOpenAutoFocus}
|
|
78
79
|
{isValidEvent}
|
|
79
|
-
trapFocus
|
|
80
|
+
{trapFocus}
|
|
80
81
|
{loop}
|
|
81
82
|
{id}
|
|
82
83
|
>
|
|
@@ -109,7 +110,7 @@
|
|
|
109
110
|
onEscapeKeydown={handleEscapeKeydown}
|
|
110
111
|
{onOpenAutoFocus}
|
|
111
112
|
{isValidEvent}
|
|
112
|
-
trapFocus
|
|
113
|
+
{trapFocus}
|
|
113
114
|
{loop}
|
|
114
115
|
{id}
|
|
115
116
|
>
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
onOpenAutoFocus: onOpenAutoFocusProp = noop,
|
|
26
26
|
onCloseAutoFocus: onCloseAutoFocusProp = noop,
|
|
27
27
|
onFocusOutside = noop,
|
|
28
|
+
trapFocus = false,
|
|
28
29
|
...restProps
|
|
29
30
|
}: MenuSubContentStaticProps = $props();
|
|
30
31
|
|
|
@@ -115,7 +116,7 @@
|
|
|
115
116
|
onFocusOutside={handleOnFocusOutside}
|
|
116
117
|
preventScroll={false}
|
|
117
118
|
{loop}
|
|
118
|
-
trapFocus
|
|
119
|
+
{trapFocus}
|
|
119
120
|
isStatic
|
|
120
121
|
>
|
|
121
122
|
{#snippet popper({ props })}
|
|
@@ -145,7 +146,7 @@
|
|
|
145
146
|
onFocusOutside={handleOnFocusOutside}
|
|
146
147
|
preventScroll={false}
|
|
147
148
|
{loop}
|
|
148
|
-
trapFocus
|
|
149
|
+
{trapFocus}
|
|
149
150
|
isStatic
|
|
150
151
|
>
|
|
151
152
|
{#snippet popper({ props })}
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
onCloseAutoFocus: onCloseAutoFocusProp = noop,
|
|
27
27
|
onFocusOutside = noop,
|
|
28
28
|
side = "right",
|
|
29
|
+
trapFocus = false,
|
|
29
30
|
...restProps
|
|
30
31
|
}: MenuSubContentProps = $props();
|
|
31
32
|
|
|
@@ -117,7 +118,7 @@
|
|
|
117
118
|
onFocusOutside={handleOnFocusOutside}
|
|
118
119
|
preventScroll={false}
|
|
119
120
|
{loop}
|
|
120
|
-
trapFocus
|
|
121
|
+
{trapFocus}
|
|
121
122
|
>
|
|
122
123
|
{#snippet popper({ props, wrapperProps })}
|
|
123
124
|
{@const finalProps = mergeProps(props, mergedProps, {
|
|
@@ -152,7 +153,7 @@
|
|
|
152
153
|
onFocusOutside={handleOnFocusOutside}
|
|
153
154
|
preventScroll={false}
|
|
154
155
|
{loop}
|
|
155
|
-
trapFocus
|
|
156
|
+
{trapFocus}
|
|
156
157
|
>
|
|
157
158
|
{#snippet popper({ props, wrapperProps })}
|
|
158
159
|
{@const finalProps = mergeProps(props, mergedProps, {
|