Address textarea caret positioning

This commit is contained in:
Francisco Hodge 2021-03-24 23:59:50 -04:00
parent 12c149ca66
commit 2d86c6c2c0
2 changed files with 7 additions and 6 deletions

File diff suppressed because one or more lines are too long

View File

@ -1077,11 +1077,12 @@ class SimpleKeyboard {
} }
if ( if (
(targetTagName === "textarea" || targetTagName === "input") && targetTagName === "textarea" ||
["text", "search", "url", "tel", "password"].includes( (targetTagName === "input" &&
event.target.type ["text", "search", "url", "tel", "password"].includes(
) && event.target.type
!instance.options.disableCaretPositioning ) &&
!instance.options.disableCaretPositioning)
) { ) {
/** /**
* Tracks current cursor position * Tracks current cursor position