From 0775343c8eac746ff156c1c937e39c4b93fe0703 Mon Sep 17 00:00:00 2001 From: nathangray Date: Mon, 27 Nov 2017 15:28:17 -0700 Subject: [PATCH] Mail - Fix initial cursor position when replying to text emails --- mail/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mail/js/app.js b/mail/js/app.js index 17d464e83a..a6b11142fa 100644 --- a/mail/js/app.js +++ b/mail/js/app.js @@ -299,7 +299,7 @@ app.classes.mail = AppJS.extend( // focus jQuery(plainText.node).focus(); // get the cursor to the top of the textarea - if (typeof plainText.node.setSelectionRange !='undefined' && !plainText.node.is(":hidden")) plainText.node.setSelectionRange(0,0); + if (typeof plainText.node.setSelectionRange !='undefined' && !jQuery(plainText.node).is(":hidden")) plainText.node.setSelectionRange(0,0); } else {