Skip to content

Commit 18360dd

Browse files
committed
fix validate bug
1 parent 751385d commit 18360dd

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@codingapi/ui-framework",
3-
"version": "0.0.13",
3+
"version": "0.0.14",
44
"description": "A UI Framework built with React and Typescript",
55
"keywords": [
66
"ui",

src/Form/validate.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,10 @@ export class FormValidateContext {
8383
if (this.map.size <= 0) {
8484
return Promise.resolve(true);
8585
}
86-
const list = Array.from(this.map.keys().map(item => {
86+
const keys = this.map.keys();
87+
const list = Array.from(keys).map(item => {
8788
return this.validateField(item, form);
88-
}));
89+
});
8990

9091
const results = await Promise.all(list);
9192
return results.every((result) => result);

0 commit comments

Comments
 (0)