Alcumus / react-doc-viewer

Apache License 2.0
207 stars 101 forks source link

Doc viewer buttons submit form #136

Open peytonpeck opened 2 months ago

peytonpeck commented 2 months ago

Hello,

When using the <DocViewer/> component from within a form, the buttons submit the form. Is there a reason that the buttons don't have type="button"? If not, is this a change that would make sense to be made?

I understand that ideally the DocViewer should not be put within a form, however I am dealing with some pretty large forms that make it hard to split up the inputs and the file viewer.

Thanks!