mirror of
https://github.com/moparisthebest/mail
synced 2025-02-16 15:10:10 -05:00
Add validation for privatekey-upload directive
This commit is contained in:
parent
aed2a5ec14
commit
f8f4ee7945
@ -201,7 +201,7 @@ define(function(require) {
|
||||
var maxLen = element[0].maxLength;
|
||||
|
||||
scope.$watch(attr.ngModel, function(val) {
|
||||
if (val.length === maxLen) {
|
||||
if (val && val.length === maxLen) {
|
||||
var nextinput = element.next('input');
|
||||
if (nextinput.length) {
|
||||
nextinput[0].focus();
|
||||
|
Loading…
Reference in New Issue
Block a user