@odx/foundation 1.0.0-alpha.44 → 1.0.0-alpha.45

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.
@@ -2101,12 +2101,13 @@ let OdxInput = class extends FormControl(CustomElement) {
2101
2101
  this.value = event.target.value;
2102
2102
  });
2103
2103
  __privateAdd$i(this, _handleKeyDown$2, (event) => {
2104
- if (!this.clearable || !getKeyboardEventInfo(event).actions.escape) return;
2104
+ const { actions } = getKeyboardEventInfo(event);
2105
+ if (!actions.escape) return;
2105
2106
  event.preventDefault();
2106
2107
  __privateGet$f(this, _handleClear$1).call(this);
2107
2108
  });
2108
2109
  __privateAdd$i(this, _handleClear$1, () => {
2109
- if (this.emit("clear")) return;
2110
+ if (!this.clearable || this.emit("clear")) return;
2110
2111
  this.clear();
2111
2112
  });
2112
2113
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@odx/foundation",
3
3
  "description": "A library of Web Component building blocks for ODX",
4
- "version": "1.0.0-alpha.44",
4
+ "version": "1.0.0-alpha.45",
5
5
  "author": "Drägerwerk AG & Co.KGaA",
6
6
  "license": "SEE LICENSE IN LICENSE",
7
7
  "homepage": "https://odx.draeger.com",