Skip to content
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

DirtyForms does not work properly with $.blockUI #128

Open
ivansammartino opened this issue May 31, 2018 · 0 comments
Open

DirtyForms does not work properly with $.blockUI #128

ivansammartino opened this issue May 31, 2018 · 0 comments

Comments

@ivansammartino
Copy link

ivansammartino commented May 31, 2018

Hello,
I'm using $.blockUI plugin when clicking on links to change pages in my app (some pages take a couple of seconds more to load and a visual feedback is fine)

When I change field content and then click any link, DirtyForms is triggered: but when I cancel the process to stay on the page, $.blockUI starts its game, resulting in a stuck page

Here is a jsFiddle.

I also tried to leverage stay.dirtyforms and afterstay.dirtyforms events to unblock UI, but with no luck (example here). defer.dirtyforms seems to work but the event is triggered twice (I put a console.log() to check) and I am not sure this is the way to go...

Please, any solution?
Thanks :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant