Reset className on clear()

This commit is contained in:
Francisco Hodge
2018-08-13 14:48:21 -04:00
parent c32a8a9568
commit 8e3b0e18c0
7 changed files with 8 additions and 7 deletions
+2 -1
View File
@@ -22,7 +22,7 @@ class SimpleKeyboard {
this.options.inputName = this.options.inputName || "default";
this.input = {};
this.input[this.options.inputName] = '';
this.keyboardDOMClass = keyboardDOMQuery.split('.').join("");
/**
* Rendering keyboard
@@ -101,6 +101,7 @@ class SimpleKeyboard {
clear = () => {
this.keyboardDOM.innerHTML = '';
this.keyboardDOM.className = this.keyboardDOMClass;
}
render = () => {