-
Notifications
You must be signed in to change notification settings - Fork 44
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
Dropdown menus submit form #18
Comments
Hi, workaround for me (prevent every dropdown to submit) in the Template.xxx.onRendered : and in Template.xxx.events : 'click .note-editor * ' : function(e) { |
AbdelMounhim, the type attribute makes no sense in the context of i HTML elements. What I temporarily did is: $(".note-editor")
.find("button")
.attr("type", "button"); |
@diegonc Thanks, this workaround works great for the time being. |
yes. thanks @diegonc for your workaround. |
Same problem. |
Lot of thanks @diegonc ! |
Dropdown menus in the toolbar are implemented as
button
tags but have notype
property. The default value for that property issubmit
which means each time one toolbar menu is opened the form containing the materialnote editor is submitted.Please add
type="button"
to the attribute list of buttons. Otherwise, the editor is not very useful when insede a form element.I'm working with the Meteor package, inside an autoform form, but that should not be relevant.
The text was updated successfully, but these errors were encountered: