mirror of
https://github.com/hodgef/simple-keyboard.git
synced 2025-02-01 11:03:04 +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 (
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user