@vaadin/vaadin-combo-box
Advanced tools
Comparing version 5.4.12 to 5.4.13
@@ -13,3 +13,3 @@ { | ||
"name": "@vaadin/vaadin-combo-box", | ||
"version": "5.4.12", | ||
"version": "5.4.13", | ||
"main": "vaadin-combo-box.js", | ||
@@ -49,6 +49,2 @@ "author": "Vaadin Ltd", | ||
}, | ||
"scripts": { | ||
"generate-typings": "gen-typescript-declarations --outDir . --verify", | ||
"test": "wct --npm" | ||
}, | ||
"devDependencies": { | ||
@@ -65,3 +61,7 @@ "@web-padawan/gen-typescript-declarations": "^1.6.2", | ||
"@vaadin/vaadin-dialog": "^2.5.0" | ||
}, | ||
"scripts": { | ||
"generate-typings": "gen-typescript-declarations --outDir . --verify", | ||
"test": "wct --npm" | ||
} | ||
} |
@@ -88,2 +88,7 @@ /** | ||
disconnectedCallback(): void; | ||
/** | ||
* Returns true if the current input value satisfies all constraints (if any). | ||
*/ | ||
checkValidity(): boolean; | ||
} | ||
@@ -90,0 +95,0 @@ |
@@ -135,2 +135,13 @@ /** | ||
/** | ||
* Returns true if the current input value satisfies all constraints (if any). | ||
* @return {boolean} | ||
*/ | ||
checkValidity() { | ||
if (this.inputElement && this.inputElement.validate) { | ||
return this.inputElement.validate(); | ||
} | ||
return super.checkValidity(); | ||
} | ||
/** @protected */ | ||
@@ -137,0 +148,0 @@ connectedCallback() { |
@@ -915,2 +915,3 @@ /** | ||
if (this.value !== this._lastCommittedValue) { | ||
this.validate(); | ||
this.dispatchEvent(new CustomEvent('change', {bubbles: true})); | ||
@@ -1080,2 +1081,3 @@ this._lastCommittedValue = this.value; | ||
this._closeOrCommit(); | ||
this.validate(); | ||
} | ||
@@ -1110,4 +1112,4 @@ } | ||
checkValidity() { | ||
if (this.inputElement.validate) { | ||
return this.inputElement.validate(); | ||
if (this.inputElement.checkValidity) { | ||
return this.inputElement.checkValidity(); | ||
} | ||
@@ -1114,0 +1116,0 @@ } |
@@ -232,3 +232,3 @@ /** | ||
static get version() { | ||
return '5.4.12'; | ||
return '5.4.13'; | ||
} | ||
@@ -355,2 +355,9 @@ | ||
// Disable the internal text-field's validation to prevent it from overriding | ||
// the invalid state that was propagated to the text-field from the combo-box. | ||
this.inputElement.validate = () => {}; | ||
// Restore the internal text-field's invalid state in case | ||
// it got overridden before the validation was disabled above. | ||
this.inputElement.invalid = this.invalid; | ||
this._nativeInput = this.inputElement.focusElement; | ||
@@ -357,0 +364,0 @@ this._toggleElement = this.$.toggleButton; |
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
147025
3761