Do not update fields if current input is empty
This commit is contained in:
parent
4031d976b8
commit
56be7eee15
|
@ -95,7 +95,7 @@
|
||||||
this.textarea.id = `${this.name}Input`;
|
this.textarea.id = `${this.name}Input`;
|
||||||
this.textarea.className = "numberInput";
|
this.textarea.className = "numberInput";
|
||||||
this.textarea.oninput = () => {
|
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;
|
return;
|
||||||
|
|
||||||
this.textarea.value = this.numeralSystem.filterBaseString(this.textarea.value);
|
this.textarea.value = this.numeralSystem.filterBaseString(this.textarea.value);
|
||||||
|
|
Loading…
Reference in New Issue