anno.js icon indicating copy to clipboard operation
anno.js copied to clipboard

Form submits on NextButton click

Open ghost opened this issue 5 years ago • 2 comments

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?

ghost avatar May 12 '20 19:05 ghost

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

jlecordier avatar Dec 08 '20 18:12 jlecordier

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

jonkoerber avatar Apr 21 '21 18:04 jonkoerber