Skip to content

Commit

Permalink
Cropper button type defined as 'button' (#62)
Browse files Browse the repository at this point in the history
As discussed in pull request vugar005/ngx-awesome-uploader/pull#61, added explicit button type="button" to stop form from being submitted pre-maturely.
  • Loading branch information
MohsinEngineer authored Jan 17, 2021
1 parent dccfdb2 commit f3223a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion projects/file-picker/src/lib/file-picker.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,12 @@
(load)="cropperImgLoaded($event)"
/>
<div class="cropper-actions">
<button class="cropSubmit" (click)="onCropSubmit()">
<button class="cropSubmit" (click)="onCropSubmit()" type="button">
{{ captions?.cropper?.crop }}
</button>
<button
class="cropCancel"
type="button"
(click)="
closeCropper({
file: currentCropperFile,
Expand Down

0 comments on commit f3223a6

Please sign in to comment.