componentDidMount can get the real Dom, but trigger('click') still fails. Is there anyone who can solve it?
滿天的星座2017-05-19 10:39:43
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.