mirror of
https://github.com/hodgef/simple-keyboard.git
synced 2026-04-30 00:00:04 +08:00
Reset className on clear()
This commit is contained in:
@@ -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 = () => {
|
||||
|
||||
Reference in New Issue
Block a user