@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.
@@ -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 && t.preventDefault(), e.consumer.onInteractOutside?.(t);
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glasshome/ui",
3
- "version": "1.34.1",
3
+ "version": "1.34.2",
4
4
  "description": "SolidJS component library for GlassHome, built on Kobalte",
5
5
  "keywords": [
6
6
  "components",
@@ -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) e.preventDefault();
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) => {