@vaadin/vaadin-combo-box 21.0.1 → 21.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/vaadin-combo-box",
3
- "version": "21.0.1",
3
+ "version": "21.0.5",
4
4
  "description": "Web Component for displaying a list of items with filtering",
5
5
  "main": "vaadin-combo-box.js",
6
6
  "repository": "vaadin/vaadin-combo-box",
@@ -28,27 +28,27 @@
28
28
  "@polymer/iron-list": "^3.0.0",
29
29
  "@polymer/iron-resizable-behavior": "^3.0.0",
30
30
  "@polymer/polymer": "^3.0.0",
31
- "@vaadin/vaadin-control-state-mixin": "^21.0.1",
32
- "@vaadin/vaadin-element-mixin": "^21.0.1",
33
- "@vaadin/vaadin-item": "^21.0.1",
34
- "@vaadin/vaadin-lumo-styles": "^21.0.1",
35
- "@vaadin/vaadin-material-styles": "^21.0.1",
36
- "@vaadin/vaadin-overlay": "^21.0.1",
37
- "@vaadin/vaadin-text-field": "^21.0.1",
38
- "@vaadin/vaadin-themable-mixin": "^21.0.1"
31
+ "@vaadin/vaadin-control-state-mixin": "^21.0.5",
32
+ "@vaadin/vaadin-element-mixin": "^21.0.5",
33
+ "@vaadin/vaadin-item": "^21.0.5",
34
+ "@vaadin/vaadin-lumo-styles": "^21.0.5",
35
+ "@vaadin/vaadin-material-styles": "^21.0.5",
36
+ "@vaadin/vaadin-overlay": "^21.0.5",
37
+ "@vaadin/vaadin-text-field": "^21.0.5",
38
+ "@vaadin/vaadin-themable-mixin": "^21.0.5"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@esm-bundle/chai": "4.3.0",
42
42
  "@polymer/iron-input": "^3.0.1",
43
43
  "@polymer/paper-input": "^3.0.0",
44
44
  "@vaadin/testing-helpers": "^0.2.1",
45
- "@vaadin/vaadin-dialog": "^21.0.1",
46
- "@vaadin/vaadin-template-renderer": "^21.0.1",
47
- "lit": "^2.0.0-rc.1",
45
+ "@vaadin/vaadin-dialog": "^21.0.5",
46
+ "@vaadin/vaadin-template-renderer": "^21.0.5",
47
+ "lit": "^2.0.0",
48
48
  "sinon": "^9.2.0"
49
49
  },
50
50
  "publishConfig": {
51
51
  "access": "public"
52
52
  },
53
- "gitHead": "91e44dcfa63dc5e30e1e8d18be499b3e1e17b1c4"
53
+ "gitHead": "c79135f420e560fa566afc1377db9585757bc4c3"
54
54
  }
@@ -22,6 +22,8 @@ registerStyles(
22
22
 
23
23
  const ONE_THIRD = 0.3;
24
24
 
25
+ let memoizedTemplate;
26
+
25
27
  /**
26
28
  * An element used internally by `<vaadin-combo-box>`. Not intended to be used separately.
27
29
  *
@@ -33,6 +35,15 @@ class ComboBoxOverlayElement extends OverlayElement {
33
35
  return 'vaadin-combo-box-overlay';
34
36
  }
35
37
 
38
+ static get template() {
39
+ if (!memoizedTemplate) {
40
+ memoizedTemplate = super.template.cloneNode(true);
41
+ memoizedTemplate.content.querySelector('[part~="overlay"]').removeAttribute('tabindex');
42
+ }
43
+
44
+ return memoizedTemplate;
45
+ }
46
+
36
47
  connectedCallback() {
37
48
  super.connectedCallback();
38
49
 
@@ -249,7 +249,7 @@ export const ComboBoxMixin = (subclass) =>
249
249
  '_itemsOrPathsChanged(items.*, itemValuePath, itemLabelPath)',
250
250
  '_filteredItemsChanged(filteredItems.*, itemValuePath, itemLabelPath)',
251
251
  '_loadingChanged(loading)',
252
- '_selectedItemChanged(selectedItem, itemLabelPath)',
252
+ '_selectedItemChanged(selectedItem, itemValuePath, itemLabelPath)',
253
253
  '_toggleElementChanged(_toggleElement)'
254
254
  ];
255
255
  }
@@ -1028,7 +1028,7 @@ export const ComboBoxMixin = (subclass) =>
1028
1028
  event.composedPath()[0].focus();
1029
1029
  return;
1030
1030
  }
1031
- if (!this._closeOnBlurIsPrevented) {
1031
+ if (!this.readonly && !this._closeOnBlurIsPrevented) {
1032
1032
  this._closeOrCommit();
1033
1033
  }
1034
1034
  }
@@ -243,7 +243,7 @@ class ComboBoxElement extends ElementMixin(
243
243
  }
244
244
 
245
245
  static get version() {
246
- return '21.0.1';
246
+ return '21.0.5';
247
247
  }
248
248
 
249
249
  static get properties() {