mirror of
https://github.com/hodgef/simple-keyboard.git
synced 2025-03-04 00:12:58 +08:00
Prevent wrapper removal on destroy. Fixes #294
This commit is contained in:
parent
ad1e93c75b
commit
c36acbb5f6
@ -785,7 +785,6 @@ class SimpleKeyboard {
|
||||
|
||||
this.recurseButtons(deleteButton);
|
||||
|
||||
this.buttonElements = null;
|
||||
this.recurseButtons = null;
|
||||
deleteButton = null;
|
||||
|
||||
@ -796,8 +795,10 @@ class SimpleKeyboard {
|
||||
this.keyboardDOM.ontouchstart = null;
|
||||
this.keyboardDOM.onmousedown = null;
|
||||
|
||||
this.keyboardDOM.remove();
|
||||
this.keyboardDOM = null;
|
||||
/**
|
||||
* Clearing keyboard wrapper
|
||||
*/
|
||||
this.clear();
|
||||
|
||||
/**
|
||||
* Remove instance
|
||||
|
Loading…
Reference in New Issue
Block a user