diff --git a/src/lib/components/Keyboard.ts b/src/lib/components/Keyboard.ts index 76abcfdd..4385eee9 100644 --- a/src/lib/components/Keyboard.ts +++ b/src/lib/components/Keyboard.ts @@ -1260,7 +1260,7 @@ class SimpleKeyboard { /** * Tracking current input in order to handle caret positioning edge cases */ - this.activeInputElement = event.target; + instance.activeInputElement = event.target; if (instance.options.debug) { console.log( @@ -1284,7 +1284,7 @@ class SimpleKeyboard { /** * Resetting activeInputElement */ - this.activeInputElement = null; + instance.activeInputElement = null; if (instance.options.debug) { console.log(