-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
Description
Uploader does not integrate well with RHF 7 - onBlur event doesn't trigger as expected.
Current workaround is to combine a controlled version with useState with RHF's setValue.
Something sort of like:
const [files, setFiles] = useState<UploadedFile[]>(...);
const { setValue } = useForm();
useEffect(() => {
setValue(files);
}, [files]);Reactions are currently unavailable