@bombillazo/rhf-plus 7.56.2-plus.0 → 7.56.3-plus.0

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.
@@ -415,7 +415,12 @@ function useController(props) {
415
415
  const ref = React__default.useCallback((elm) => {
416
416
  const field = get(control._fields, name);
417
417
  if (field && elm) {
418
- field._f.ref = elm;
418
+ field._f.ref = {
419
+ focus: () => elm.focus(),
420
+ select: () => elm.select(),
421
+ setCustomValidity: (message) => elm.setCustomValidity(message),
422
+ reportValidity: () => elm.reportValidity(),
423
+ };
419
424
  }
420
425
  }, [control._fields, name]);
421
426
  const field = React__default.useMemo(() => ({