mirror of
https://github.com/moparisthebest/mail
synced 2024-12-23 07:48:48 -05:00
Fix error msg in focus-me for non-textarea inputs
This commit is contained in:
parent
a92a5c5a3f
commit
f66fbf592c
@ -459,7 +459,8 @@ define(function(require) {
|
||||
$timeout(function() {
|
||||
var el = element[0];
|
||||
el.focus();
|
||||
if (typeof el.selectionStart !== 'undefined' && typeof el.selectionEnd !== 'undefined') {
|
||||
// set cursor to start of textarea
|
||||
if (el.type === 'textarea') {
|
||||
el.selectionStart = 0;
|
||||
el.selectionEnd = 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user