Prevent wrapper removal on destroy. Fixes #294

This commit is contained in:
Francisco Hodge 2019-11-13 06:59:24 -05:00
parent ad1e93c75b
commit c36acbb5f6

View File

@ -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