Mail - Fix initial cursor position when replying to text emails

This commit is contained in:
nathangray 2017-11-27 15:28:17 -07:00
parent 1f042783f7
commit 0775343c8e

View File

@ -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
{