We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 751385d commit 18360ddCopy full SHA for 18360dd
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "@codingapi/ui-framework",
3
- "version": "0.0.13",
+ "version": "0.0.14",
4
"description": "A UI Framework built with React and Typescript",
5
"keywords": [
6
"ui",
src/Form/validate.ts
@@ -83,9 +83,10 @@ export class FormValidateContext {
83
if (this.map.size <= 0) {
84
return Promise.resolve(true);
85
}
86
- const list = Array.from(this.map.keys().map(item => {
+ const keys = this.map.keys();
87
+ const list = Array.from(keys).map(item => {
88
return this.validateField(item, form);
- }));
89
+ });
90
91
const results = await Promise.all(list);
92
return results.every((result) => result);
0 commit comments