-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
data-method links don't work under nav dropdowns #343
Comments
+1 |
It's true for other methods such as |
I'm seeing similar issues with the nav dropdown with regular links. Probably connected to twbs/bootstrap#4497 issue. |
+1 |
User mfansler provided a workaround in the other issue, which works when I add it to my application.js.
Not ideal, but will work until Bootstrap 2.1.1 is released. |
Workaround confirmed working. Thanks ! |
I tried the workaround but didn't work! So, I just went back to v2.1.0 and it's working again! |
+1 |
4 similar comments
+1 |
+1 |
+1 |
+1 |
This should be fixed from #364 |
+1 |
Thanks for the update, @toadkicker. I've gone ahead and closed this issue. |
It appears that
data-method
links (specifically for a:delete
action to destroy a session) does not work as part of a navigation link withinul.dropdown-menu
. If I copy the link code verbatim into the navigation itself (i.e.: it appears underul.nav
), then the link works perfectly fine.The issue is only occurring when using twitter-bootstrap-rails from git master HEAD (specifically ref
efc2fdc139f9
, which includes the update for Twitter Bootstrap v2.1.0). If I switch back to twitter-bootstrap-rails version 2.1.1, then the issue goes away.I've included relevant code below.
Gemfile
routes.rb
layouts/application.html.haml
The specific routing error message is:
Apparently something in twitter-bootstrap-rails is preventing jquery-rails from processing the
data-method="delete"
attribute correctly on ONLY the dropdown menu version of the link.The text was updated successfully, but these errors were encountered: