W
W
Worddoc2019-06-16 04:44:59
JavaScript
Worddoc, 2019-06-16 04:44:59

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

1 answer(s)
S
Sergey Epifanov, 2019-06-16
@Worddoc

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 question

Ask a Question

731 491 924 answers to any question