Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Form submits on NextButton click #66

Open
ghost opened this issue May 12, 2020 · 2 comments
Open

Form submits on NextButton click #66

ghost opened this issue May 12, 2020 · 2 comments

Comments

@ghost
Copy link

ghost commented May 12, 2020

When the NextButton is clicked on the annotation, it submits the form if the target's parent is a form. How do I stop this?

@jlecordier
Copy link

The author (or anyone using this library) has to fix the code. The AnnoButton is defined as a <button class='anno-btn'>, but it should be <button class='anno-btn' type='button'>, or else it acts like a submit button

@jonkoerber
Copy link

jlecordier is correct. I made the change to the JS source code myself and it fixed the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants