Answer the question
In order to leave comments, you need to log in
React-dropzone: Why can't I initiate a dialog box opening?
Greetings!
Given: created HOC withDropzone, which accepts a component, by clicking on which the open method of the ref should be called.
But for some reason the dialog box does not appear, even though the method itself exists.
https://codesandbox.io/s/friendly-boyd-x9tir
Tell me, what is the cause of this problem? Thank you!
Answer the question
In order to leave comments, you need to log in
It is necessary to pass the ref for input, otherwise it will not work I
made an example
More information is here
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question