@vaadin/vaadin-text-field
Advanced tools
Comparing version 2.3.2 to 2.3.3
@@ -13,3 +13,3 @@ { | ||
"name": "@vaadin/vaadin-text-field", | ||
"version": "2.3.2", | ||
"version": "2.3.3", | ||
"main": "vaadin-text-field.js", | ||
@@ -16,0 +16,0 @@ "author": "Vaadin Ltd", |
@@ -34,3 +34,3 @@ /** | ||
static get version() { | ||
return '2.3.2'; | ||
return '2.3.3'; | ||
} | ||
@@ -37,0 +37,0 @@ |
@@ -80,3 +80,3 @@ /** | ||
static get version() { | ||
return '2.3.2'; | ||
return '2.3.3'; | ||
} | ||
@@ -83,0 +83,0 @@ |
@@ -80,3 +80,3 @@ /** | ||
static get version() { | ||
return '2.3.2'; | ||
return '2.3.3'; | ||
} | ||
@@ -83,0 +83,0 @@ |
@@ -133,3 +133,3 @@ /** | ||
static get version() { | ||
return '2.3.2'; | ||
return '2.3.3'; | ||
} | ||
@@ -136,0 +136,0 @@ |
@@ -323,2 +323,8 @@ /** | ||
_onInput(e) { | ||
if (this.__preventInput) { | ||
e.stopImmediatePropagation(); | ||
this.__preventInput = false; | ||
return; | ||
} | ||
if (this.preventInvalidInput) { | ||
@@ -506,3 +512,3 @@ const input = this.inputElement; | ||
this._boundOnChange = this._onChange.bind(this); | ||
this._boundOnBlur = this.validate.bind(this); | ||
this._boundOnBlur = this._onBlur.bind(this); | ||
this._boundOnFocus = this._onFocus.bind(this); | ||
@@ -549,2 +555,6 @@ | ||
_onBlur() { | ||
this.validate(); | ||
} | ||
_onFocus() { | ||
@@ -581,7 +591,3 @@ if (this.autoselect) { | ||
// https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/101220/ | ||
this._prevent = e => { | ||
e.stopImmediatePropagation(); | ||
this.inputElement.removeEventListener('input', this._prevent); | ||
}; | ||
this._shouldPreventInput = () => this.placeholder && node.addEventListener('input', this._prevent); | ||
this._shouldPreventInput = () => this.__preventInput = true; | ||
node.addEventListener('focusin', this._shouldPreventInput); | ||
@@ -588,0 +594,0 @@ node.addEventListener('focusout', this._shouldPreventInput); |
@@ -106,3 +106,3 @@ /** | ||
static get version() { | ||
return '2.3.2'; | ||
return '2.3.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
2057
91195