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

This commit is contained in:
cnjs
2018-04-16 18:29:56 +08:00
committed by 杨奕
parent 3eb377f72f
commit f2988cd1bd

View File

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