@glasshome/ui 1.34.1 → 1.34.2
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.
- package/dist/solid/index.js +5 -1
- package/package.json +1 -1
- package/src/lib/shadow-layer.ts +4 -1
package/dist/solid/index.js
CHANGED
|
@@ -3506,7 +3506,11 @@ function ms(e) {
|
|
|
3506
3506
|
host: n,
|
|
3507
3507
|
onInteractOutside: (t) => {
|
|
3508
3508
|
let r = n();
|
|
3509
|
-
r && t.target === r
|
|
3509
|
+
if (r && t.target === r) {
|
|
3510
|
+
t.preventDefault();
|
|
3511
|
+
return;
|
|
3512
|
+
}
|
|
3513
|
+
e.consumer.onInteractOutside?.(t);
|
|
3510
3514
|
},
|
|
3511
3515
|
onCloseAutoFocus: (n) => {
|
|
3512
3516
|
let r = t;
|
package/package.json
CHANGED
package/src/lib/shadow-layer.ts
CHANGED
|
@@ -109,7 +109,10 @@ export function shadowLayer(options: ShadowLayerOptions): LayerHandlers {
|
|
|
109
109
|
host: shadowHost,
|
|
110
110
|
onInteractOutside: (e) => {
|
|
111
111
|
const host = shadowHost();
|
|
112
|
-
if (host && e.target === host)
|
|
112
|
+
if (host && e.target === host) {
|
|
113
|
+
e.preventDefault();
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
113
116
|
options.consumer.onInteractOutside?.(e as never);
|
|
114
117
|
},
|
|
115
118
|
onCloseAutoFocus: (e) => {
|