mirror of
https://github.com/hodgef/simple-keyboard.git
synced 2025-02-21 00:23:02 +08:00
Fix caret tag check
This commit is contained in:
parent
6d3b92caee
commit
359aa35abf
@ -1077,12 +1077,12 @@ class SimpleKeyboard {
|
||||
}
|
||||
|
||||
if (
|
||||
targetTagName === "textarea" ||
|
||||
(targetTagName === "input" &&
|
||||
["text", "search", "url", "tel", "password"].includes(
|
||||
event.target.type
|
||||
) &&
|
||||
!instance.options.disableCaretPositioning)
|
||||
(
|
||||
targetTagName === "textarea" ||
|
||||
(targetTagName === "input" &&
|
||||
["text", "search", "url", "tel", "password"].includes(event.target.type)
|
||||
)
|
||||
) && !instance.options.disableCaretPositioning
|
||||
) {
|
||||
/**
|
||||
* Tracks current cursor position
|
||||
|
Loading…
Reference in New Issue
Block a user