From 56be7eee1589b13f5d864c03f4c1a8721fad38b9 Mon Sep 17 00:00:00 2001 From: "Felix W. Dekker" Date: Thu, 31 Oct 2019 16:27:02 +0100 Subject: [PATCH] Do not update fields if current input is empty --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 1db5d89..c2c219b 100644 --- a/index.html +++ b/index.html @@ -95,7 +95,7 @@ this.textarea.id = `${this.name}Input`; this.textarea.className = "numberInput"; this.textarea.oninput = () => { - if (this.textarea.value === undefined || this.textarea.value === null) + if (this.textarea.value === undefined || this.textarea.value === null || this.textarea.value === "") return; this.textarea.value = this.numeralSystem.filterBaseString(this.textarea.value);