-
Notifications
You must be signed in to change notification settings - Fork 385
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
event.preventDefault(); is not working. #614
Comments
Ok, that is weird. Afaik this should work. Did you verify what A suggestion: why not hide the "remove"-links (and only show them) if your threshold of minimally required questions is reached? UI/UX-wise it seems more user-friendly to hide buttons (or disable them) that you know will not work anyway. Anyway: this suggestion does not take away the fact that the |
And you are also sure the callback is actually triggered? |
yes.. the callback is working. |
I had already tested this, but for demonstration purposes I have updated the demo project where this cancellation is demonstrated easily: when inserting a new task you got as in the documentation the confirmation question and on my machine this works correctly. See commit: nathanvda/cocoon_simple_form_demo@1a45d69 So options I can think of:
|
Gemfile
_form.html.erb
_question_options_fields.html.erb
JS is
The text was updated successfully, but these errors were encountered: