remix-validated-form 3.4.1 → 3.4.2
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.
package/.turbo/turbo-build.log
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
[2K[1G[2m$ npm run build:browser && npm run build:main[22m
|
2
2
|
|
3
|
-
> remix-validated-form@3.4.
|
3
|
+
> remix-validated-form@3.4.1 build:browser
|
4
4
|
> tsc --module ESNext --outDir ./browser
|
5
5
|
|
6
6
|
|
7
|
-
> remix-validated-form@3.4.
|
7
|
+
> remix-validated-form@3.4.1 build:main
|
8
8
|
> tsc --module CommonJS --outDir ./build
|
9
9
|
|
@@ -5,7 +5,7 @@ const defaultValidationBehavior = {
|
|
5
5
|
};
|
6
6
|
const getCheckboxDefaultChecked = (value, defaultValue) => {
|
7
7
|
if (Array.isArray(defaultValue))
|
8
|
-
defaultValue.includes(value);
|
8
|
+
return defaultValue.includes(value);
|
9
9
|
if (typeof defaultValue === "boolean")
|
10
10
|
return defaultValue;
|
11
11
|
if (typeof defaultValue === "string")
|
@@ -8,7 +8,7 @@ const defaultValidationBehavior = {
|
|
8
8
|
};
|
9
9
|
const getCheckboxDefaultChecked = (value, defaultValue) => {
|
10
10
|
if (Array.isArray(defaultValue))
|
11
|
-
defaultValue.includes(value);
|
11
|
+
return defaultValue.includes(value);
|
12
12
|
if (typeof defaultValue === "boolean")
|
13
13
|
return defaultValue;
|
14
14
|
if (typeof defaultValue === "string")
|
package/package.json
CHANGED
@@ -40,7 +40,7 @@ const defaultValidationBehavior: ValidationBehaviorOptions = {
|
|
40
40
|
};
|
41
41
|
|
42
42
|
const getCheckboxDefaultChecked = (value: string, defaultValue: any) => {
|
43
|
-
if (Array.isArray(defaultValue)) defaultValue.includes(value);
|
43
|
+
if (Array.isArray(defaultValue)) return defaultValue.includes(value);
|
44
44
|
if (typeof defaultValue === "boolean") return defaultValue;
|
45
45
|
if (typeof defaultValue === "string") return defaultValue === value;
|
46
46
|
return undefined;
|