MessageBox: fix invalid input border color when inputValidator returns string (#10729)

pull/10112/merge
cnjs 2018-04-16 18:29:56 +08:00 committed by 杨奕
parent 3eb377f72f
commit f2988cd1bd
1 changed files with 1 additions and 0 deletions

View File

@ -223,6 +223,7 @@
}
if (typeof validateResult === 'string') {
this.editorErrorMessage = validateResult;
addClass(this.getInputElement(), 'invalid');
return false;
}
}