@nectary/components 5.53.0 → 5.53.1

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.
@@ -80,7 +80,9 @@ class ActionMenu extends NectaryElement {
80
80
  const isTextInput = activeElement !== null && activeElement.tagName === "INPUT";
81
81
  if (!isTextInput) {
82
82
  this.focus();
83
- this.#selectOption(this.#getFirstOption());
83
+ if (this.matches(":focus-visible")) {
84
+ this.#selectOption(this.#getFirstOption());
85
+ }
84
86
  }
85
87
  }
86
88
  };
package/bundle.js CHANGED
@@ -987,7 +987,9 @@ class ActionMenu extends NectaryElement {
987
987
  const isTextInput = activeElement !== null && activeElement.tagName === "INPUT";
988
988
  if (!isTextInput) {
989
989
  this.focus();
990
- this.#selectOption(this.#getFirstOption());
990
+ if (this.matches(":focus-visible")) {
991
+ this.#selectOption(this.#getFirstOption());
992
+ }
991
993
  }
992
994
  }
993
995
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nectary/components",
3
- "version": "5.53.0",
3
+ "version": "5.53.1",
4
4
  "files": [
5
5
  "**/*/*.css",
6
6
  "**/*/*.json",
@@ -36,6 +36,7 @@
36
36
  "@types/react": "^18.2.21",
37
37
  "babel-plugin-html-inline-minifier": "workspace:*",
38
38
  "dts-bundle-generator": "^9.5.1",
39
+ "tsx": "^4.19.0",
39
40
  "typescript": "^5.2.2",
40
41
  "vite": "^7.0.6"
41
42
  },