@umbraco-ui/uui-combobox 1.15.0 → 1.16.0-rc.0

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.
Files changed (2) hide show
  1. package/lib/index.js +9 -3
  2. package/package.json +9 -9
package/lib/index.js CHANGED
@@ -100,14 +100,20 @@ let UUIComboboxElement = class extends UUIFormControlMixin(LitElement, "") {
100
100
  this.dispatchEvent(new UUIComboboxEvent(UUIComboboxEvent.SEARCH));
101
101
  });
102
102
  __privateAdd(this, _onKeyDown, (e) => {
103
- if (this.open === false && e.key === "Enter") {
103
+ if (this.open === false && e.code === "Enter") {
104
104
  e.preventDefault();
105
105
  e.stopImmediatePropagation();
106
106
  }
107
- if (e.key === "ArrowUp" || e.key === "ArrowDown") {
107
+ if (e.code === "ArrowUp" || e.code === "ArrowDown") {
108
108
  __privateGet(this, _onOpen).call(this);
109
109
  }
110
- if (e.key === "Escape" || e.key === "Enter") {
110
+ if (e.code === "Space") {
111
+ if (this._isOpen) return;
112
+ e.preventDefault();
113
+ e.stopImmediatePropagation();
114
+ __privateGet(this, _onOpen).call(this);
115
+ }
116
+ if (e.code === "Escape" || e.code === "Enter") {
111
117
  __privateGet(this, _onClose).call(this);
112
118
  }
113
119
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umbraco-ui/uui-combobox",
3
- "version": "1.15.0",
3
+ "version": "1.16.0-rc.0",
4
4
  "license": "MIT",
5
5
  "keywords": [
6
6
  "Umbraco",
@@ -30,13 +30,13 @@
30
30
  "custom-elements.json"
31
31
  ],
32
32
  "dependencies": {
33
- "@umbraco-ui/uui-base": "1.15.0",
34
- "@umbraco-ui/uui-button": "1.15.0",
35
- "@umbraco-ui/uui-combobox-list": "1.15.0",
36
- "@umbraco-ui/uui-icon": "1.15.0",
37
- "@umbraco-ui/uui-popover-container": "1.15.0",
38
- "@umbraco-ui/uui-scroll-container": "1.15.0",
39
- "@umbraco-ui/uui-symbol-expand": "1.15.0"
33
+ "@umbraco-ui/uui-base": "1.16.0-rc.0",
34
+ "@umbraco-ui/uui-button": "1.16.0-rc.0",
35
+ "@umbraco-ui/uui-combobox-list": "1.16.0-rc.0",
36
+ "@umbraco-ui/uui-icon": "1.16.0-rc.0",
37
+ "@umbraco-ui/uui-popover-container": "1.16.0-rc.0",
38
+ "@umbraco-ui/uui-scroll-container": "1.16.0-rc.0",
39
+ "@umbraco-ui/uui-symbol-expand": "1.16.0-rc.0"
40
40
  },
41
41
  "scripts": {
42
42
  "build": "npm run analyze && tsc --build && rollup -c rollup.config.js",
@@ -47,5 +47,5 @@
47
47
  "access": "public"
48
48
  },
49
49
  "homepage": "https://uui.umbraco.com/?path=/story/uui-combobox",
50
- "gitHead": "b84216deaff3a3be8f7bd8cdbf2758e7955c70e9"
50
+ "gitHead": "7bf1acd40b60feb81d82067ba2342d2b3e33c057"
51
51
  }