@aurodesignsystem/auro-library 5.11.1 → 5.11.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 +9 -0
- package/package.json +1 -1
- package/scripts/runtime/floatingUI.mjs +24 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Semantic Release Automated Changelog
|
|
2
2
|
|
|
3
|
+
## [5.11.2](https://github.com/AlaskaAirlines/auro-library/compare/v5.11.1...v5.11.2) (2026-03-17)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* prevent dropdown from closing on click for noToggle elements AB[#1494298](https://github.com/AlaskaAirlines/auro-library/issues/1494298) ([4d23b40](https://github.com/AlaskaAirlines/auro-library/commit/4d23b4082c8e22d9a865ba51b702f70185cfd455))
|
|
9
|
+
* return comment ([d2b315c](https://github.com/AlaskaAirlines/auro-library/commit/d2b315c0ca08d724ac6239d0e25b6127173f990e))
|
|
10
|
+
* simplify hideBib logic with early returns for readability ([bd4038d](https://github.com/AlaskaAirlines/auro-library/commit/bd4038dce05969e18e87910a234344f95c729ac2))
|
|
11
|
+
|
|
3
12
|
## [5.11.1](https://github.com/AlaskaAirlines/auro-library/compare/v5.11.0...v5.11.1) (2026-03-04)
|
|
4
13
|
|
|
5
14
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aurodesignsystem/auro-library",
|
|
3
|
-
"version": "5.11.
|
|
3
|
+
"version": "5.11.2",
|
|
4
4
|
"description": "This repository holds shared scripts, utilities, and workflows utilized across repositories along the Auro Design System.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -488,19 +488,32 @@ export default class AuroFloatingUI {
|
|
|
488
488
|
* @param {String} eventType - The event type that triggered the hiding action.
|
|
489
489
|
*/
|
|
490
490
|
hideBib(eventType = "unknown") {
|
|
491
|
-
if (
|
|
492
|
-
|
|
493
|
-
|
|
491
|
+
if (this.element.disabled) {
|
|
492
|
+
return;
|
|
493
|
+
}
|
|
494
494
|
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
this.showing = false;
|
|
501
|
-
this.dispatchEventDropdownToggle(eventType);
|
|
502
|
-
}
|
|
495
|
+
// noToggle dropdowns should not close when the trigger is clicked (the
|
|
496
|
+
// "toggle" behavior), but they CAN still close via other interactions like
|
|
497
|
+
// Escape key or focus loss.
|
|
498
|
+
if (this.element.noToggle && eventType === "click") {
|
|
499
|
+
return;
|
|
503
500
|
}
|
|
501
|
+
|
|
502
|
+
this.lockScroll(false);
|
|
503
|
+
this.element.triggerChevron?.removeAttribute("data-expanded");
|
|
504
|
+
|
|
505
|
+
if (this.element.isPopoverVisible) {
|
|
506
|
+
this.element.isPopoverVisible = false;
|
|
507
|
+
}
|
|
508
|
+
if (this.showing) {
|
|
509
|
+
this.cleanupHideHandlers();
|
|
510
|
+
this.showing = false;
|
|
511
|
+
this.dispatchEventDropdownToggle(eventType);
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
// Only clear the global reference if the bib was actually hidden.
|
|
515
|
+
// Clearing it when hideBib is blocked (e.g. noToggle + click) corrupts
|
|
516
|
+
// the singleton state so other dropdowns can't detect this one is still open.
|
|
504
517
|
document.expandedAuroFloater = null;
|
|
505
518
|
}
|
|
506
519
|
|