Rails’ UJS adapter causes confirm loop #9

Closed
jletourneau opened this Issue Jun 19, 2014 · 2 comments

Projects

None yet

1 participant

@jletourneau
Contributor

When the Rails unobtrusive JavaScript adapter (https://github.com/rails/jquery-ujs) is in place on a page, links or forms with both the data-method and data-confirm attribute (e.g. links that perform a delete) cannot be properly confirmed: a new confirmation modal comes up each time you hit OK on the previous.

@jletourneau jletourneau added the bug label Jun 19, 2014
@jletourneau
Contributor

I looked into this a bit last night and may end up needing to rework some of the structure of the data attributes this plugin uses. Going to feel it out a little more and see what I can do.

@jletourneau
Contributor

Fortunately, the fix for this did not entail any usage changes, so I've tagged it with a bugfix release number (1.0.1). Should be all set now, with or without jquery_ujs.js in play.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment