mirror of
https://github.com/hodgef/simple-keyboard.git
synced 2025-02-21 00:23:02 +08:00
Check for selectionStart before access. Fixes #855
This commit is contained in:
parent
afe5a400b4
commit
77feca2343
@ -847,6 +847,8 @@ class SimpleKeyboard {
|
||||
|
||||
if (
|
||||
(targetTagName === "textarea" || targetTagName === "input") &&
|
||||
"selectionStart" in event.target &&
|
||||
"selectionEnd" in event.target &&
|
||||
!instance.options.disableCaretPositioning
|
||||
) {
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user