Skip to content
This repository was archived by the owner on May 4, 2022. It is now read-only.

Commit 014400a

Browse files
calummoorejgw96
authored andcommitted
Exclude contentEditable from preventDefault on tapMouseDown() (#8742)
1 parent caf0df8 commit 014400a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: js/utils/tap.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ function tapMouseDown(e) {
362362
e.stopPropagation();
363363

364364
if (!ionic.Platform.isEdge() && (!ionic.tap.isTextInput(e.target) || tapLastTouchTarget !== e.target) &&
365-
!isSelectOrOption(e.target.tagName) && !ionic.tap.isVideo(e.target)) {
365+
!isSelectOrOption(e.target.tagName) && !e.target.isContentEditable && !ionic.tap.isVideo(e.target)) {
366366
// If you preventDefault on a text input then you cannot move its text caret/cursor.
367367
// Allow through only the text input default. However, without preventDefault on an
368368
// input the 300ms delay can change focus on inputs after the keyboard shows up.

0 commit comments

Comments
 (0)