JSFiddle - React, Tailwind, and code Playground
by dsbonev
HTML
<label>
Label text
<input type=file name=file />
</label>
JavaScript
if($.browser.mozilla) {
$(document).on('click', 'label', function(e) {
if(e.currentTarget === this && e.target.nodeName !== 'INPUT') {
$(this.control).click();
}
});
}