mirror of
https://github.com/hodgef/simple-keyboard.git
synced 2025-01-20 01:22:59 +08:00
Address textarea caret positioning
This commit is contained in:
parent
12c149ca66
commit
2d86c6c2c0
File diff suppressed because one or more lines are too long
@ -1077,11 +1077,12 @@ class SimpleKeyboard {
|
||||
}
|
||||
|
||||
if (
|
||||
(targetTagName === "textarea" || targetTagName === "input") &&
|
||||
targetTagName === "textarea" ||
|
||||
(targetTagName === "input" &&
|
||||
["text", "search", "url", "tel", "password"].includes(
|
||||
event.target.type
|
||||
) &&
|
||||
!instance.options.disableCaretPositioning
|
||||
!instance.options.disableCaretPositioning)
|
||||
) {
|
||||
/**
|
||||
* Tracks current cursor position
|
||||
|
Loading…
Reference in New Issue
Block a user