@vaadin/vaadin-text-field
Advanced tools
Comparing version 2.4.2 to 2.4.3
@@ -13,3 +13,3 @@ { | ||
"name": "@vaadin/vaadin-text-field", | ||
"version": "2.4.2", | ||
"version": "2.4.3", | ||
"main": "vaadin-text-field.js", | ||
@@ -16,0 +16,0 @@ "author": "Vaadin Ltd", |
@@ -34,3 +34,3 @@ /** | ||
static get version() { | ||
return '2.4.2'; | ||
return '2.4.3'; | ||
} | ||
@@ -37,0 +37,0 @@ |
@@ -80,3 +80,3 @@ /** | ||
static get version() { | ||
return '2.4.2'; | ||
return '2.4.3'; | ||
} | ||
@@ -83,0 +83,0 @@ |
@@ -80,3 +80,3 @@ /** | ||
static get version() { | ||
return '2.4.2'; | ||
return '2.4.3'; | ||
} | ||
@@ -83,0 +83,0 @@ |
@@ -133,3 +133,3 @@ /** | ||
static get version() { | ||
return '2.4.2'; | ||
return '2.4.3'; | ||
} | ||
@@ -136,0 +136,0 @@ |
@@ -364,15 +364,3 @@ /** | ||
if (this.__inputFromClearButton) { | ||
this.__inputFromClearButton = false; | ||
// In this case when input event is triggered by clear button we need to skip | ||
// setting "this.__userInput = true" because the clear button clears the value | ||
// first triggering _valueChanged() before this input event. If we wouldn't | ||
// skip this, then __userInput would be left true until the next _valueChanged() | ||
// happens which would then prevent setting this.inputElement.value correctly | ||
// leaving it out of sync with this.value. | ||
} else { | ||
// This is used to prevent setting this.inputElement.value in _valueChanged() | ||
// when this input event was actually triggered by the user from the input | ||
// element itself (thus the value there should be correct already). | ||
// This flag is set back to false in _valueChanged(). | ||
if (!e.__fromClearButton) { | ||
this.__userInput = true; | ||
@@ -612,5 +600,8 @@ } | ||
} | ||
this.__inputFromClearButton = true; | ||
this.inputElement.dispatchEvent(new Event('input', {bubbles: true, composed: true})); | ||
this.inputElement.dispatchEvent(new Event('change', {bubbles: !this._slottedInput})); | ||
const inputEvent = new Event('input', {bubbles: true, composed: true}); | ||
inputEvent.__fromClearButton = true; | ||
const changeEvent = new Event('change', {bubbles: !this._slottedInput}); | ||
changeEvent.__fromClearButton = true; | ||
this.inputElement.dispatchEvent(inputEvent); | ||
this.inputElement.dispatchEvent(changeEvent); | ||
} | ||
@@ -617,0 +608,0 @@ |
@@ -106,3 +106,3 @@ /** | ||
static get version() { | ||
return '2.4.2'; | ||
return '2.4.3'; | ||
} | ||
@@ -109,0 +109,0 @@ |
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
94168
2134