You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While Grapes editor is a part of bigger form, button "Import" on modal executes submit, because by deafult in HTML5, tag without type="button" is a submit.
I used preventDefault() in btnImp.onclick function, it solves the problem.
Alternatively, attribute type="button" in document.createElement("button") should also work.
The text was updated successfully, but these errors were encountered:
While Grapes editor is a part of bigger form, button "Import" on modal executes submit, because by deafult in HTML5, tag without type="button" is a submit.
I used preventDefault() in btnImp.onclick function, it solves the problem.
Alternatively, attribute type="button" in document.createElement("button") should also work.
The text was updated successfully, but these errors were encountered: