Commit 468124f9 authored by Allenice's avatar Allenice Committed by 杨奕

Form: fix async validate bug

parent 476d1c4f
......@@ -86,7 +86,7 @@
if (typeof callback !== 'function' && window.Promise) {
promise = new window.Promise((resolve, reject) => {
callback = function(valid) {
resolve(valid);
valid ? resolve(valid) : reject(valid);
};
});
}
......
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