Skip to content

Commit 03dfc21

Browse files
committed
prevent blur when touch input element itself
1 parent 7d19a4b commit 03dfc21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/input.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const KeyboardCenter = (function () {
3232
if (!activeInput) {
3333
return
3434
}
35-
if (e && activeInput.ks.keyboardElement.contains(e.target)) {
35+
if (e && (activeInput.ks.inputElement.contains(e.target) || activeInput.ks.keyboardElement.contains(e.target))) {
3636
return
3737
}
3838
activeInput.closeKeyboard()

0 commit comments

Comments
 (0)