@lumx/react 3.6.7-alpha.7 → 3.6.7

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/package.json CHANGED
@@ -7,8 +7,8 @@
7
7
  },
8
8
  "dependencies": {
9
9
  "@juggle/resize-observer": "^3.2.0",
10
- "@lumx/core": "^3.6.7-alpha.7",
11
- "@lumx/icons": "^3.6.7-alpha.7",
10
+ "@lumx/core": "^3.6.7",
11
+ "@lumx/icons": "^3.6.7",
12
12
  "@popperjs/core": "^2.5.4",
13
13
  "body-scroll-lock": "^3.1.5",
14
14
  "classnames": "^2.3.2",
@@ -112,5 +112,5 @@
112
112
  "build:storybook": "storybook build"
113
113
  },
114
114
  "sideEffects": false,
115
- "version": "3.6.7-alpha.7"
115
+ "version": "3.6.7"
116
116
  }
@@ -26,6 +26,7 @@ export function useFocusTrap(focusZoneElement: HTMLElement | Falsy, focusElement
26
26
  return undefined;
27
27
  }
28
28
 
29
+ // Use the shadow root as focusZoneElement when available
29
30
  const focusZoneElementOrShadowRoot = focusZoneElement.shadowRoot || focusZoneElement;
30
31
 
31
32
  // Trap 'Tab' key down focus switch into the focus zone.
@@ -47,8 +48,6 @@ export function useFocusTrap(focusZoneElement: HTMLElement | Falsy, focusElement
47
48
  ? focusZoneElement.shadowRoot.activeElement
48
49
  : document.activeElement;
49
50
 
50
- console.log('data', {activeElement, focusable, focusZoneElementOrShadowRoot});
51
-
52
51
  if (
53
52
  // No previous focus
54
53
  !activeElement ||