@aurodesignsystem/auro-library 5.2.1 → 5.2.3
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 +14 -0
- package/package.json +1 -1
- package/scripts/runtime/floatingUI.mjs +5 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Semantic Release Automated Changelog
|
|
2
2
|
|
|
3
|
+
## [5.2.3](https://github.com/AlaskaAirlines/auro-library/compare/v5.2.2...v5.2.3) (2025-07-02)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* check for matchWidth before forcing dropdown width ([706f7ee](https://github.com/AlaskaAirlines/auro-library/commit/706f7eefe15d2ab5f5e208a14fe6e337d5b4e1c5))
|
|
9
|
+
|
|
10
|
+
## [5.2.2](https://github.com/AlaskaAirlines/auro-library/compare/v5.2.1...v5.2.2) (2025-06-27)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* 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))
|
|
16
|
+
|
|
3
17
|
## [5.2.1](https://github.com/AlaskaAirlines/auro-library/compare/v5.2.0...v5.2.1) (2025-06-26)
|
|
4
18
|
|
|
5
19
|
|
package/package.json
CHANGED
|
@@ -95,7 +95,7 @@ export default class AuroFloatingUI {
|
|
|
95
95
|
*/
|
|
96
96
|
mirrorSize() {
|
|
97
97
|
// mirror the boxsize from bibSizer
|
|
98
|
-
if (this.element.bibSizer) {
|
|
98
|
+
if (this.element.bibSizer && this.element.matchWidth) {
|
|
99
99
|
const sizerStyle = window.getComputedStyle(this.element.bibSizer);
|
|
100
100
|
const bibContent = this.element.bib.shadowRoot.querySelector(".container");
|
|
101
101
|
if (sizerStyle.width !== '0px') {
|
|
@@ -307,7 +307,7 @@ export default class AuroFloatingUI {
|
|
|
307
307
|
if (this.element.contains(activeElement) || this.element.bib?.contains(activeElement)) {
|
|
308
308
|
return;
|
|
309
309
|
}
|
|
310
|
-
|
|
310
|
+
|
|
311
311
|
// if fullscreen bib is in fullscreen mode, do not close
|
|
312
312
|
if (this.element.bib.hasAttribute('isfullscreen')) {
|
|
313
313
|
return;
|
|
@@ -491,8 +491,9 @@ 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;
|