@vaadin/combo-box
Advanced tools
Comparing version 23.0.0-beta3 to 23.0.0-beta4
{ | ||
"name": "@vaadin/combo-box", | ||
"version": "23.0.0-beta3", | ||
"version": "23.0.0-beta4", | ||
"publishConfig": { | ||
@@ -37,21 +37,21 @@ "access": "public" | ||
"@polymer/polymer": "^3.0.0", | ||
"@vaadin/component-base": "23.0.0-beta3", | ||
"@vaadin/field-base": "23.0.0-beta3", | ||
"@vaadin/input-container": "23.0.0-beta3", | ||
"@vaadin/item": "23.0.0-beta3", | ||
"@vaadin/vaadin-lumo-styles": "23.0.0-beta3", | ||
"@vaadin/vaadin-material-styles": "23.0.0-beta3", | ||
"@vaadin/vaadin-overlay": "23.0.0-beta3", | ||
"@vaadin/vaadin-themable-mixin": "23.0.0-beta3" | ||
"@vaadin/component-base": "23.0.0-beta4", | ||
"@vaadin/field-base": "23.0.0-beta4", | ||
"@vaadin/input-container": "23.0.0-beta4", | ||
"@vaadin/item": "23.0.0-beta4", | ||
"@vaadin/vaadin-lumo-styles": "23.0.0-beta4", | ||
"@vaadin/vaadin-material-styles": "23.0.0-beta4", | ||
"@vaadin/vaadin-overlay": "23.0.0-beta4", | ||
"@vaadin/vaadin-themable-mixin": "23.0.0-beta4" | ||
}, | ||
"devDependencies": { | ||
"@esm-bundle/chai": "^4.3.4", | ||
"@vaadin/dialog": "23.0.0-beta3", | ||
"@vaadin/polymer-legacy-adapter": "23.0.0-beta3", | ||
"@vaadin/dialog": "23.0.0-beta4", | ||
"@vaadin/polymer-legacy-adapter": "23.0.0-beta4", | ||
"@vaadin/testing-helpers": "^0.3.2", | ||
"@vaadin/text-field": "23.0.0-beta3", | ||
"@vaadin/text-field": "23.0.0-beta4", | ||
"lit": "^2.0.0", | ||
"sinon": "^9.2.0" | ||
}, | ||
"gitHead": "4c87216666541f9eb58f56c475964727822aad53" | ||
"gitHead": "d0b447f1c31ca4256a5e26f2dcd27784447ff79b" | ||
} |
@@ -711,2 +711,3 @@ /** | ||
if (this.allowCustomValue) { | ||
delete this._lastCustomValue; | ||
this.value = ''; | ||
@@ -728,6 +729,17 @@ } | ||
) { | ||
const customValue = this._inputElementValue; | ||
// User's logic in `custom-value-set` event listener might cause input to blur, | ||
// which will result in attempting to commit the same custom value once again. | ||
if (this._lastCustomValue === customValue) { | ||
return; | ||
} | ||
// Store reference to the last custom value for checking it | ||
this._lastCustomValue = customValue; | ||
// An item matching by label was not found, but custom values are allowed. | ||
// Dispatch a custom-value-set event with the input value. | ||
const e = new CustomEvent('custom-value-set', { | ||
detail: this._inputElementValue, | ||
detail: customValue, | ||
composed: true, | ||
@@ -739,3 +751,2 @@ cancelable: true, | ||
if (!e.defaultPrevented) { | ||
const customValue = this._inputElementValue; | ||
this._selectItemForValue(customValue); | ||
@@ -742,0 +753,0 @@ this.value = customValue; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
132971
3375
+ Added@vaadin/component-base@23.0.0-beta4(transitive)
+ Added@vaadin/field-base@23.0.0-beta4(transitive)
+ Added@vaadin/icon@23.0.0-beta4(transitive)
+ Added@vaadin/input-container@23.0.0-beta4(transitive)
+ Added@vaadin/item@23.0.0-beta4(transitive)
+ Added@vaadin/vaadin-lumo-styles@23.0.0-beta4(transitive)
+ Added@vaadin/vaadin-material-styles@23.0.0-beta4(transitive)
+ Added@vaadin/vaadin-overlay@23.0.0-beta4(transitive)
+ Added@vaadin/vaadin-themable-mixin@23.0.0-beta4(transitive)
- Removed@vaadin/component-base@23.0.0-beta3(transitive)
- Removed@vaadin/field-base@23.0.0-beta3(transitive)
- Removed@vaadin/icon@23.0.0-beta3(transitive)
- Removed@vaadin/input-container@23.0.0-beta3(transitive)
- Removed@vaadin/item@23.0.0-beta3(transitive)
- Removed@vaadin/vaadin-lumo-styles@23.0.0-beta3(transitive)
- Removed@vaadin/vaadin-material-styles@23.0.0-beta3(transitive)
- Removed@vaadin/vaadin-overlay@23.0.0-beta3(transitive)
- Removed@vaadin/vaadin-themable-mixin@23.0.0-beta3(transitive)
Updated@vaadin/item@23.0.0-beta4