Skip to content

DirtyForms does not work properly with $.blockUI #128

Description

@ivansammartino

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 :-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions