From 014400a56c0088a74c0041fa6ace390398ba8c5f Mon Sep 17 00:00:00 2001 From: calummoore Date: Mon, 31 Oct 2016 21:26:25 +0000 Subject: [PATCH] Exclude contentEditable from preventDefault on tapMouseDown() (#8742) --- js/utils/tap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/utils/tap.js b/js/utils/tap.js index 42cd5998c..1b48f4111 100644 --- a/js/utils/tap.js +++ b/js/utils/tap.js @@ -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.