@aurodesignsystem/auro-library 3.0.4 → 3.0.5

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,12 @@
1
1
  # Semantic Release Automated Changelog
2
2
 
3
+ ## [3.0.5](https://github.com/AlaskaAirlines/auro-library/compare/v3.0.4...v3.0.5) (2024-12-27)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * force focus state to dropdown.trigger as `document.activeElement` stays in body even with clicking [#99](https://github.com/AlaskaAirlines/auro-library/issues/99) ([5bfec7a](https://github.com/AlaskaAirlines/auro-library/commit/5bfec7a004c48b4f9612193eb4a64057b81e57cc))
9
+
3
10
  ## [3.0.4](https://github.com/AlaskaAirlines/auro-library/compare/v3.0.3...v3.0.4) (2024-12-27)
4
11
 
5
12
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aurodesignsystem/auro-library",
3
- "version": "3.0.4",
3
+ "version": "3.0.5",
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",
@@ -79,6 +79,7 @@
79
79
  "dependencies": {
80
80
  "handlebars": "^4.7.8",
81
81
  "markdown-magic": "^2.6.1",
82
+ "@floating-ui/dom": "^1.6.11",
82
83
  "npm-run-all": "^4.1.5"
83
84
  }
84
85
  }
@@ -314,6 +314,9 @@ export default class AuroFloatingUI {
314
314
  this.handleFocusLoss();
315
315
  break;
316
316
  case 'click':
317
+ if (document.activeElement === document.body) {
318
+ event.currentTarget.focus();
319
+ }
317
320
  this.handleClick();
318
321
  break;
319
322
  default: