-
Notifications
You must be signed in to change notification settings - Fork 191
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
Delete confirmation triggered twice in an inner repeater #42
Comments
The click event is being captured at list level and, for nested repeaters, it happens as many times as deep the nesting is. Replace that in jquery.repeater.js, towards the end. $list.on('click', '[data-repeater-delete]', function(event) { |
I also have a similar problem, but when I change the code of the dragosstancu, still repeated the warning: "Are you sure" |
Please, give a more detailed example in jsfiddle or codepen about eliminating nested repeaters, since I have this same problem. As I must respond with a different behavior to the slideUp and slideDown of each repeater I need to be able to identify each one: #98 (comment)
|
Hi guys, |
Cool. Thank you for sharing this. |
@dragosstancu Thank you for the fix, I hope this gets included in the next release. |
$list.on('click', '[data-repeater-delete]', function(event) { Thanks @martinmurciego it's save my day. |
My JS looks like this:
For some reason when the delete button for an item inside the "in_repeater", it triggers the "Are you sure" confirmation twice.
Everything else works fine!
The text was updated successfully, but these errors were encountered: