@vaadin/multi-select-combo-box
Advanced tools
Comparing version 24.5.5 to 24.5.6
{ | ||
"name": "@vaadin/multi-select-combo-box", | ||
"version": "24.5.5", | ||
"version": "24.5.6", | ||
"publishConfig": { | ||
@@ -41,16 +41,16 @@ "access": "public" | ||
"@polymer/polymer": "^3.0.0", | ||
"@vaadin/a11y-base": "~24.5.5", | ||
"@vaadin/combo-box": "~24.5.5", | ||
"@vaadin/component-base": "~24.5.5", | ||
"@vaadin/field-base": "~24.5.5", | ||
"@vaadin/input-container": "~24.5.5", | ||
"@vaadin/item": "~24.5.5", | ||
"@vaadin/lit-renderer": "~24.5.5", | ||
"@vaadin/overlay": "~24.5.5", | ||
"@vaadin/vaadin-lumo-styles": "~24.5.5", | ||
"@vaadin/vaadin-material-styles": "~24.5.5", | ||
"@vaadin/vaadin-themable-mixin": "~24.5.5" | ||
"@vaadin/a11y-base": "~24.5.6", | ||
"@vaadin/combo-box": "~24.5.6", | ||
"@vaadin/component-base": "~24.5.6", | ||
"@vaadin/field-base": "~24.5.6", | ||
"@vaadin/input-container": "~24.5.6", | ||
"@vaadin/item": "~24.5.6", | ||
"@vaadin/lit-renderer": "~24.5.6", | ||
"@vaadin/overlay": "~24.5.6", | ||
"@vaadin/vaadin-lumo-styles": "~24.5.6", | ||
"@vaadin/vaadin-material-styles": "~24.5.6", | ||
"@vaadin/vaadin-themable-mixin": "~24.5.6" | ||
}, | ||
"devDependencies": { | ||
"@vaadin/chai-plugins": "~24.5.5", | ||
"@vaadin/chai-plugins": "~24.5.6", | ||
"@vaadin/testing-helpers": "^1.0.0", | ||
@@ -64,3 +64,3 @@ "lit": "^3.0.0", | ||
], | ||
"gitHead": "864c93992c6466634ad47975dc6aceca3bbf8506" | ||
"gitHead": "2c20ec16149e8016e0733a80e349231da13660bc" | ||
} |
@@ -153,2 +153,8 @@ /** | ||
constructor() { | ||
super(); | ||
this.addEventListener('custom-value-set', this.__onCustomValueSet.bind(this)); | ||
} | ||
/** | ||
@@ -368,2 +374,15 @@ * Override method inherited from the combo-box | ||
* to not commit an already selected item again | ||
* after closing overlay on outside click. | ||
* @protected | ||
* @override | ||
*/ | ||
_onClosed() { | ||
this._ignoreCommitValue = true; | ||
super._onClosed(); | ||
} | ||
/** | ||
* Override method inherited from the combo-box | ||
* to not commit an already selected item again | ||
* on blur, which would result in un-selecting. | ||
@@ -378,3 +397,3 @@ * @protected | ||
// Reset internal combo-box state | ||
this.selectedItem = null; | ||
this.clear(); | ||
this._inputElementValue = ''; | ||
@@ -448,4 +467,13 @@ return; | ||
} | ||
/** @private */ | ||
__onCustomValueSet(event) { | ||
// Prevent setting custom value on input blur or outside click, | ||
// so it can be only committed explicitly by pressing Enter. | ||
if (this._ignoreCommitValue) { | ||
event.stopImmediatePropagation(); | ||
} | ||
} | ||
} | ||
defineCustomElement(MultiSelectComboBoxInternal); |
{ | ||
"$schema": "https://json.schemastore.org/web-types", | ||
"name": "@vaadin/multi-select-combo-box", | ||
"version": "24.5.5", | ||
"version": "24.5.6", | ||
"description-markup": "markdown", | ||
@@ -6,0 +6,0 @@ "contributions": { |
{ | ||
"$schema": "https://json.schemastore.org/web-types", | ||
"name": "@vaadin/multi-select-combo-box", | ||
"version": "24.5.5", | ||
"version": "24.5.6", | ||
"description-markup": "markdown", | ||
@@ -6,0 +6,0 @@ "framework": "lit", |
161014
4112
Updated@vaadin/a11y-base@~24.5.6
Updated@vaadin/combo-box@~24.5.6
Updated@vaadin/field-base@~24.5.6
Updated@vaadin/item@~24.5.6
Updated@vaadin/lit-renderer@~24.5.6
Updated@vaadin/overlay@~24.5.6