1
0
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:
Tankred Hase 2014-07-23 17:13:38 +02:00
parent aed2a5ec14
commit f8f4ee7945

View File

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