@try-at-software/input-elements 1.2.0-alpha.29 → 1.2.0-alpha.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -8,8 +8,14 @@ function getFormState(inputs) {
|
|
|
8
8
|
let hasChanges = false;
|
|
9
9
|
let index = 0;
|
|
10
10
|
while ((isValid || !hasChanges) && index < inputs.length) {
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
const currentInput = inputs[index];
|
|
12
|
+
if (!currentInput) {
|
|
13
|
+
isValid = false;
|
|
14
|
+
}
|
|
15
|
+
else {
|
|
16
|
+
isValid = isValid && currentInput.isValid;
|
|
17
|
+
hasChanges = hasChanges || currentInput.hasChanges;
|
|
18
|
+
}
|
|
13
19
|
index++;
|
|
14
20
|
}
|
|
15
21
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@try-at-software/input-elements",
|
|
3
|
-
"version": "1.2.0-alpha.
|
|
3
|
+
"version": "1.2.0-alpha.30",
|
|
4
4
|
"description": "A package providing different input elements that are extensible and easily configurable for your custom needs.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|