defunkt / jquery-pjax

pushState + ajax = pjax
https://pjax.herokuapp.com
MIT License
16.73k stars 1.97k forks source link

pjax unbind 'submit' event? #610

Closed eldyvoon closed 7 years ago

eldyvoon commented 8 years ago

after navigate with pjax, I found below binding event has gone.

$(document).on('submit', 'form[method="POST"]', function(event) { alert('something'); });

while this binding is still 'live'

$(document).on('click', '.test', function(event) { alert('test'); });

This is annoying.

mislav commented 7 years ago

Sorry, there is not enough information given here for us to be able to provide any advice. It sounds like this might be a problem with usage of this project, and not a bug in our code. If you do think this is a bug, please reopen this and provide more information, such as steps to reproduce. Thank you!