@aurodesignsystem/auro-library 5.2.0 → 5.2.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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Semantic Release Automated Changelog
|
|
2
2
|
|
|
3
|
+
## [5.2.2](https://github.com/AlaskaAirlines/auro-library/compare/v5.2.1...v5.2.2) (2025-06-27)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* correct logic for key handling when enter is pressed in the trigger of a floatingui element ([f310866](https://github.com/AlaskaAirlines/auro-library/commit/f310866d6137aa2e8a2a2a62c95bbe00867bf09d))
|
|
9
|
+
|
|
10
|
+
## [5.2.1](https://github.com/AlaskaAirlines/auro-library/compare/v5.2.0...v5.2.1) (2025-06-26)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Performance Improvements
|
|
14
|
+
|
|
15
|
+
* add deep nested focusable elements support in focustrap ([68b0262](https://github.com/AlaskaAirlines/auro-library/commit/68b0262157f0a2cad24d603e67c59e2b2ea0f76f))
|
|
16
|
+
|
|
3
17
|
# [5.2.0](https://github.com/AlaskaAirlines/auro-library/compare/v5.1.0...v5.2.0) (2025-06-24)
|
|
4
18
|
|
|
5
19
|
|
package/package.json
CHANGED
|
@@ -58,10 +58,12 @@ export class FocusTrap {
|
|
|
58
58
|
// Get the active element(s) in the document and shadow root
|
|
59
59
|
// This will include the active element in the shadow DOM if it exists
|
|
60
60
|
// Active element may be inside the shadow DOM depending on delegatesFocus, so we need to check both
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
61
|
+
let activeElement = document.activeElement;
|
|
62
|
+
const actives = [activeElement];
|
|
63
|
+
while (activeElement?.shadowRoot?.activeElement) {
|
|
64
|
+
actives.push(activeElement.shadowRoot.activeElement);
|
|
65
|
+
activeElement = activeElement.shadowRoot.activeElement;
|
|
66
|
+
}
|
|
65
67
|
|
|
66
68
|
// Update the focusable elements
|
|
67
69
|
const focusables = this._getFocusableElements();
|
|
@@ -127,4 +129,4 @@ export class FocusTrap {
|
|
|
127
129
|
|
|
128
130
|
this.container.removeEventListener('keydown', this._onKeydown);
|
|
129
131
|
}
|
|
130
|
-
}
|
|
132
|
+
}
|
|
@@ -491,10 +491,11 @@ export default class AuroFloatingUI {
|
|
|
491
491
|
// Space is included as it's expected behavior for interactive elements
|
|
492
492
|
|
|
493
493
|
const origin = event.composedPath()[0];
|
|
494
|
-
if (event.key === 'Enter' || (
|
|
495
|
-
|
|
494
|
+
if (event.key === 'Enter' || event.key === ' ' && (!origin || origin.tagName !== "INPUT")) {
|
|
495
|
+
|
|
496
|
+
event.preventDefault();
|
|
496
497
|
this.handleClick();
|
|
497
|
-
}
|
|
498
|
+
}
|
|
498
499
|
break;
|
|
499
500
|
case 'mouseenter':
|
|
500
501
|
if (this.element.hoverToggle) {
|