From 957ce8c03d40c2e5ed3c012bcc205dd19a8b04c7 Mon Sep 17 00:00:00 2001 From: trading_peter Date: Sun, 13 Mar 2022 22:32:40 +0100 Subject: [PATCH] Remove unused code --- package.json | 2 +- tp-input.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 8cf8b29..4c51d51 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@tp/tp-input", - "version": "1.0.4", + "version": "1.0.5", "description": "", "main": "tp-input.js", "scripts": { diff --git a/tp-input.js b/tp-input.js index 6a267af..90648b9 100644 --- a/tp-input.js +++ b/tp-input.js @@ -196,6 +196,7 @@ class TpInput extends BaseElement { this.listen(this.inputEl, 'keypress', '_onKeypress'); if (this.value !== '' && this.value !== undefined && this.inputEl.value === '') { + this.inputEl.value = this.value; this._onInput(); // Force validation }