@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.
@@ -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(() => ({