jquery/jquery-mobile — Issue #3549: Problem with dialog on form, form data is deleted
Author: josemite
Created: 2012-02-08 10:41:36+00:00
State: open

Hi!

I have a form with a dialog on it. My problem is reproduced by these steps:

1. I enter a value in a form textbox.
2. then I open a JQM dialog which is placed on the same form
3. when I close the dialog the form data is gone

The strange thing is that this error occurs only the first time the form page is loaded. If I refresh the page after it has loaded the dialog and the form works as I want (and expect), i.e. the form data is perserved after I close the dialog.

My workaround is to disable data-ajax for the page transition to the form page. With data-ajax disabled the form data is never lost. I would prefer to have data-ajax transisions though, as they are nice. :)

Mabye this developer got the same problem https://github.com/jquery/jquery-mobile/issues/3478, I left a comment there.

Best regards