@vaadin/multi-select-combo-box 23.5.9 → 23.5.11

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/multi-select-combo-box",
3
- "version": "23.5.9",
3
+ "version": "23.5.11",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -37,14 +37,14 @@
37
37
  ],
38
38
  "dependencies": {
39
39
  "@polymer/polymer": "^3.0.0",
40
- "@vaadin/combo-box": "~23.5.9",
41
- "@vaadin/component-base": "~23.5.9",
42
- "@vaadin/field-base": "~23.5.9",
43
- "@vaadin/input-container": "~23.5.9",
44
- "@vaadin/lit-renderer": "~23.5.9",
45
- "@vaadin/vaadin-lumo-styles": "~23.5.9",
46
- "@vaadin/vaadin-material-styles": "~23.5.9",
47
- "@vaadin/vaadin-themable-mixin": "~23.5.9"
40
+ "@vaadin/combo-box": "~23.5.11",
41
+ "@vaadin/component-base": "~23.5.11",
42
+ "@vaadin/field-base": "~23.5.11",
43
+ "@vaadin/input-container": "~23.5.11",
44
+ "@vaadin/lit-renderer": "~23.5.11",
45
+ "@vaadin/vaadin-lumo-styles": "~23.5.11",
46
+ "@vaadin/vaadin-material-styles": "~23.5.11",
47
+ "@vaadin/vaadin-themable-mixin": "~23.5.11"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@esm-bundle/chai": "^4.3.4",
@@ -56,5 +56,5 @@
56
56
  "web-types.json",
57
57
  "web-types.lit.json"
58
58
  ],
59
- "gitHead": "42b9cb7f53bf56753c61d7373c76081ba46bff38"
59
+ "gitHead": "fd8d4ef9a6ea67665827b6e712ede3aed53527c2"
60
60
  }
@@ -149,6 +149,12 @@ class MultiSelectComboBoxInternal extends ComboBoxDataProviderMixin(ComboBoxMixi
149
149
  return 'vaadin-multi-select-combo-box';
150
150
  }
151
151
 
152
+ constructor() {
153
+ super();
154
+
155
+ this.addEventListener('custom-value-set', this.__onCustomValueSet.bind(this));
156
+ }
157
+
152
158
  /**
153
159
  * Override method inherited from the combo-box
154
160
  * to allow opening dropdown when readonly.
@@ -449,6 +455,15 @@ class MultiSelectComboBoxInternal extends ComboBoxDataProviderMixin(ComboBoxMixi
449
455
 
450
456
  super.clearCache();
451
457
  }
458
+
459
+ /** @private */
460
+ __onCustomValueSet(event) {
461
+ // Prevent setting custom value on input blur or outside click,
462
+ // so it can be only committed explicitly by pressing Enter.
463
+ if (this._ignoreCommitValue) {
464
+ event.stopImmediatePropagation();
465
+ }
466
+ }
452
467
  }
453
468
 
454
469
  customElements.define(MultiSelectComboBoxInternal.is, MultiSelectComboBoxInternal);
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/multi-select-combo-box",
4
- "version": "23.5.9",
4
+ "version": "23.5.11",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/multi-select-combo-box",
4
- "version": "23.5.9",
4
+ "version": "23.5.11",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {