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

Commit

Permalink
Exclude contentEditable from preventDefault on tapMouseDown() (#8742)
Browse files Browse the repository at this point in the history
  • Loading branch information
calummoore authored and jgw96 committed Oct 31, 2016
1 parent caf0df8 commit 014400a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/utils/tap.js
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ function tapMouseDown(e) {
e.stopPropagation();

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

0 comments on commit 014400a

Please sign in to comment.