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