@nectary/components 5.57.0 → 5.57.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.
package/bundle.js CHANGED
@@ -7675,9 +7675,9 @@ class Input extends NectaryElement {
7675
7675
  const size = this.getAttribute("data-size") ?? DEFAULT_SIZE;
7676
7676
  this.#sizeContext.dispatch(size);
7677
7677
  }
7678
+ // No `onKeyDown` lookup: the native keydown is composed, so React already calls `onKeyDown` itself
7678
7679
  #onKeyDownReactHandler = (e) => {
7679
7680
  getReactEventHandler(this, "on-key-down")?.(e);
7680
- getReactEventHandler(this, "onKeyDown")?.(e);
7681
7681
  };
7682
7682
  #onChangeReactHandler = (e) => {
7683
7683
  getReactEventHandler(this, "on-change")?.(e);
package/input/index.js CHANGED
@@ -740,9 +740,9 @@ class Input extends NectaryElement {
740
740
  const size = this.getAttribute("data-size") ?? DEFAULT_SIZE;
741
741
  this.#sizeContext.dispatch(size);
742
742
  }
743
+ // No `onKeyDown` lookup: the native keydown is composed, so React already calls `onKeyDown` itself
743
744
  #onKeyDownReactHandler = (e) => {
744
745
  getReactEventHandler(this, "on-key-down")?.(e);
745
- getReactEventHandler(this, "onKeyDown")?.(e);
746
746
  };
747
747
  #onChangeReactHandler = (e) => {
748
748
  getReactEventHandler(this, "on-change")?.(e);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nectary/components",
3
- "version": "5.57.0",
3
+ "version": "5.57.1",
4
4
  "files": [
5
5
  "**/*/*.css",
6
6
  "**/*/*.json",