@dartech/arsenal-ui 1.3.54 → 1.3.56
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/index.js +2 -2
- package/package.json +1 -1
package/index.js
CHANGED
@@ -537,7 +537,7 @@ const ControlCheckbox = _a => {
|
|
537
537
|
} = useController({
|
538
538
|
name,
|
539
539
|
control,
|
540
|
-
defaultValue
|
540
|
+
defaultValue: false
|
541
541
|
});
|
542
542
|
const value = useWatch({
|
543
543
|
control,
|
@@ -1865,7 +1865,7 @@ const ControlNumberInput = _a => {
|
|
1865
1865
|
rules: {
|
1866
1866
|
required: required && 'Please, fill this field',
|
1867
1867
|
validate: val => {
|
1868
|
-
if (val === null) return true;
|
1868
|
+
if (val === null || val === 0) return true;
|
1869
1869
|
if (decimal && !floatsOnly.test(val) || /^-*0+$/.test(val)) {
|
1870
1870
|
return 'Not valid number';
|
1871
1871
|
} else if (!decimal && !digitsOnly.test(val)) {
|