@juantroconisf/lib 3.1.2 → 3.1.3
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/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -192,7 +192,7 @@ function useFormChange({
|
|
|
192
192
|
);
|
|
193
193
|
const registerHandle = (0, import_react.useCallback)(
|
|
194
194
|
(id) => {
|
|
195
|
-
const [value, isTouched] = [state[id], touched[id]], selectedValidations = validations[id], hasValidations = selectedValidations !== void 0, inputValidations = getValidation(
|
|
195
|
+
const [value, isTouched] = [state[id], touched[id]], selectedValidations = validations?.[id], hasValidations = selectedValidations !== void 0, inputValidations = getValidation(
|
|
196
196
|
value,
|
|
197
197
|
isTouched,
|
|
198
198
|
selectedValidations,
|
package/dist/index.mjs
CHANGED
|
@@ -173,7 +173,7 @@ function useFormChange({
|
|
|
173
173
|
);
|
|
174
174
|
const registerHandle = useCallback(
|
|
175
175
|
(id) => {
|
|
176
|
-
const [value, isTouched] = [state[id], touched[id]], selectedValidations = validations[id], hasValidations = selectedValidations !== void 0, inputValidations = getValidation(
|
|
176
|
+
const [value, isTouched] = [state[id], touched[id]], selectedValidations = validations?.[id], hasValidations = selectedValidations !== void 0, inputValidations = getValidation(
|
|
177
177
|
value,
|
|
178
178
|
isTouched,
|
|
179
179
|
selectedValidations,
|