javascript - trigger('click') fails in react componentDidMount
仅有的幸福
仅有的幸福 2017-05-19 10:37:43
0
1
557

componentDidMount can get the real Dom, but trigger('click') still fails. Is there anyone who can solve it?

仅有的幸福
仅有的幸福

reply all(1)
滿天的星座

I tested input text, $('').focus is valid, but input file is invalid. The problem should be that the browser has security restrictions.
This is due to a security restriction.Most browsers prevent submitting files when the input field didn't receive a direct click or keyboard click event as a security precaution.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template