@vaadin/multi-select-combo-box 24.4.16 → 24.4.18

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": "24.4.16",
3
+ "version": "24.4.18",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -38,17 +38,17 @@
38
38
  ],
39
39
  "dependencies": {
40
40
  "@polymer/polymer": "^3.0.0",
41
- "@vaadin/a11y-base": "~24.4.16",
42
- "@vaadin/combo-box": "~24.4.16",
43
- "@vaadin/component-base": "~24.4.16",
44
- "@vaadin/field-base": "~24.4.16",
45
- "@vaadin/input-container": "~24.4.16",
46
- "@vaadin/item": "~24.4.16",
47
- "@vaadin/lit-renderer": "~24.4.16",
48
- "@vaadin/overlay": "~24.4.16",
49
- "@vaadin/vaadin-lumo-styles": "~24.4.16",
50
- "@vaadin/vaadin-material-styles": "~24.4.16",
51
- "@vaadin/vaadin-themable-mixin": "~24.4.16"
41
+ "@vaadin/a11y-base": "~24.4.18",
42
+ "@vaadin/combo-box": "~24.4.18",
43
+ "@vaadin/component-base": "~24.4.18",
44
+ "@vaadin/field-base": "~24.4.18",
45
+ "@vaadin/input-container": "~24.4.18",
46
+ "@vaadin/item": "~24.4.18",
47
+ "@vaadin/lit-renderer": "~24.4.18",
48
+ "@vaadin/overlay": "~24.4.18",
49
+ "@vaadin/vaadin-lumo-styles": "~24.4.18",
50
+ "@vaadin/vaadin-material-styles": "~24.4.18",
51
+ "@vaadin/vaadin-themable-mixin": "~24.4.18"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@esm-bundle/chai": "^4.3.4",
@@ -60,5 +60,5 @@
60
60
  "web-types.json",
61
61
  "web-types.lit.json"
62
62
  ],
63
- "gitHead": "f21deed6fb2f251b85ab88e89a7a4799f7bc4768"
63
+ "gitHead": "af1a9d8ba1a195d6f714fe45e1eae932b2d5ce38"
64
64
  }
@@ -150,6 +150,12 @@ class MultiSelectComboBoxInternal extends ComboBoxDataProviderMixin(ComboBoxMixi
150
150
  return 'vaadin-multi-select-combo-box';
151
151
  }
152
152
 
153
+ constructor() {
154
+ super();
155
+
156
+ this.addEventListener('custom-value-set', this.__onCustomValueSet.bind(this));
157
+ }
158
+
153
159
  /**
154
160
  * Override method inherited from the combo-box
155
161
  * to allow opening dropdown when readonly.
@@ -373,7 +379,7 @@ class MultiSelectComboBoxInternal extends ComboBoxDataProviderMixin(ComboBoxMixi
373
379
  this._ignoreCommitValue = false;
374
380
 
375
381
  // Reset internal combo-box state
376
- this.selectedItem = null;
382
+ this.clear();
377
383
  this._inputElementValue = '';
378
384
  return;
379
385
  }
@@ -442,6 +448,15 @@ class MultiSelectComboBoxInternal extends ComboBoxDataProviderMixin(ComboBoxMixi
442
448
 
443
449
  super.clearCache();
444
450
  }
451
+
452
+ /** @private */
453
+ __onCustomValueSet(event) {
454
+ // Prevent setting custom value on input blur or outside click,
455
+ // so it can be only committed explicitly by pressing Enter.
456
+ if (this._ignoreCommitValue) {
457
+ event.stopImmediatePropagation();
458
+ }
459
+ }
445
460
  }
446
461
 
447
462
  defineCustomElement(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": "24.4.16",
4
+ "version": "24.4.18",
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": "24.4.16",
4
+ "version": "24.4.18",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {