Check for selectionStart before access. Fixes #855

This commit is contained in:
Francisco Hodge 2021-01-04 03:23:40 -05:00
parent afe5a400b4
commit 77feca2343

View File

@ -847,6 +847,8 @@ class SimpleKeyboard {
if (
(targetTagName === "textarea" || targetTagName === "input") &&
"selectionStart" in event.target &&
"selectionEnd" in event.target &&
!instance.options.disableCaretPositioning
) {
/**