-
-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose ref for <input type="file">
element
#163
Comments
<input>
element<input type="file">
element
FilePond generates a custom list of input elements to store its data, the elements are removed when files are deleted, not sure how that would work with a |
how to get the file inside onSubmit then? |
get a ref to FilePond component and call |
I'm having an issue with this too because, even though we can submit by just querying the data. Now we don't get the awesome type checking that comes from using react-hook-form with a validator. Regardless, thanks for working on this :D. |
@CestDiego good point, I believe with the way I set up FilePond v5 this is addressed, so should be better in the future. |
Is your feature request related to a problem? Please describe.
Currently, it's not possible to get the
ref
for the underlying<input>
element which makes this library difficult to use with libraries like "react-hook-form".Describe the solution you'd like
Expose a prop
inputRef
so the author can provide their own ref.Describe alternatives you've considered
Hacky solutions of traversing the DOM 😢
Additional context
N/A
The text was updated successfully, but these errors were encountered: