mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-08-04 22:40:10 +02:00
fix(core): auto-focus on input type email
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
$timeout(function () {
|
||||
var el = element[0];
|
||||
el.focus();
|
||||
if (attrs.type !== 'number') {
|
||||
if (attrs.type !== 'number' && attrs.type !== 'email') {
|
||||
el.selectionStart = el.selectionEnd = el.value.length;
|
||||
}
|
||||
}, 100);
|
||||
|
||||
Reference in New Issue
Block a user