Commit f2988cd1 authored by cnjs's avatar cnjs Committed by 杨奕

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

parent 3eb377f7
...@@ -223,6 +223,7 @@ ...@@ -223,6 +223,7 @@
} }
if (typeof validateResult === 'string') { if (typeof validateResult === 'string') {
this.editorErrorMessage = validateResult; this.editorErrorMessage = validateResult;
addClass(this.getInputElement(), 'invalid');
return false; return false;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment