Alcumus/react-doc-viewer

Doc viewer buttons submit form

Opened this issue · 0 comments

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!