Remove unused code
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@tp/tp-input",
|
"name": "@tp/tp-input",
|
||||||
"version": "1.0.4",
|
"version": "1.0.5",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "tp-input.js",
|
"main": "tp-input.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -196,6 +196,7 @@ class TpInput extends BaseElement {
|
|||||||
this.listen(this.inputEl, 'keypress', '_onKeypress');
|
this.listen(this.inputEl, 'keypress', '_onKeypress');
|
||||||
|
|
||||||
if (this.value !== '' && this.value !== undefined && this.inputEl.value === '') {
|
if (this.value !== '' && this.value !== undefined && this.inputEl.value === '') {
|
||||||
|
this.inputEl.value = this.value;
|
||||||
this._onInput(); // Force validation
|
this._onInput(); // Force validation
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user