jpilfold / ngx-image-viewer

An image viewer component for Angular 2+
MIT License
49 stars 54 forks source link

Add type 'button' for buttons to avoid submit form when press it #24

Closed Gartok closed 5 years ago

Gartok commented 5 years ago

When you put image-viewer component in your form if one button is press it will send the submit action of the form. So I had the type "button" to correct the form submit.

jpilfold commented 5 years ago

Thanks for the pull request. I've now published your change into the npm build (1.0.13)