Storing an input file inside a Semantic-UI button
2 answers
I would recommend adding a label pointing to your hidden input. Shortcuts trigger typing on click. All native without JS.
<div>
<label for="hidden-new-file" class="ui icon button">
<i class="cloud icon"></i>
Open File
</label>
<input type="file" id="hidden-new-file" style="display: none">
</div>
+4
source to share