fix(core): auto-focus on input type email

This commit is contained in:
OldHawk
2017-06-15 11:33:15 +08:00
parent d80f2eb7a8
commit 678b1b58fc

View File

@@ -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);