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 a7fcb77d1b
commit eb20e4da2a

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
{