Closed prakashsejwani closed 9 years ago
I am still having issues with this too. It looks like Zurb was catching requests and then passing them off as a GET. This is an old post but it is still happening. https://github.com/zurb/foundation/issues/393
We added this to our "known issues" section in our planning board for the next version. A PR would be valuable to the community, otherwise It will be addressed then. You can see and vote on the proposed updates here: https://trello.com/b/QBPKlQqf/foundation-sites
I have a link with data-method='delete' in the Off-canvas menu:
To send a DELETE request, I'm using jquery-ujs( on Ruby on Rails ). When clicked on the link from the offcanvas, a GET request is sent. On the other hand, when I move the
outside the offcanvas or just remove the right-off-canvas-menu class from the div, everything works as expected - a DELETE request is sent. Now, I'm not sure if this is because the way foundation renders offcanvas or because of jquery-ujs, but at this point I'm pretty sure it's a bug.