@bombillazo/rhf-plus 7.56.1-plus.2 → 7.56.1-plus.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/README.md +2 -2
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.mjs +1 -6
- package/dist/index.esm.mjs.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/useController.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.mjs
CHANGED
|
@@ -454,12 +454,7 @@ function useController(props) {
|
|
|
454
454
|
const ref = React__default.useCallback((elm) => {
|
|
455
455
|
const field = get(control._fields, name);
|
|
456
456
|
if (field && elm) {
|
|
457
|
-
field._f.ref =
|
|
458
|
-
focus: () => elm.focus(),
|
|
459
|
-
select: () => elm.select(),
|
|
460
|
-
setCustomValidity: (message) => elm.setCustomValidity(message),
|
|
461
|
-
reportValidity: () => elm.reportValidity(),
|
|
462
|
-
};
|
|
457
|
+
field._f.ref = elm;
|
|
463
458
|
}
|
|
464
459
|
}, [control._fields, name]);
|
|
465
460
|
const field = React__default.useMemo(() => ({
|