Remove unused code

This commit is contained in:
2022-03-13 22:32:40 +01:00
parent f9af97a6b8
commit 957ce8c03d
2 changed files with 2 additions and 1 deletions

View File

@@ -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": {

View File

@@ -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
} }