Skip to content

Commit

Permalink
Browse button type defined as 'button' (#61)
Browse files Browse the repository at this point in the history
HTML5 dictates that all buttons inside <form> whose type is not defined default to type="submit". This proves to be a problem when using this uploader inside a form.
  • Loading branch information
MohsinEngineer authored Jan 15, 2021
1 parent 47b4adb commit dccfdb2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<div class="content-center-text">
{{captions?.dropzone?.or}}
</div>
<button class="file-browse-button">
<button class="file-browse-button" type="button">
{{captions?.dropzone?.browse}}
</button>
</div>
Expand Down

0 comments on commit dccfdb2

Please sign in to comment.