Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Popup form submission does not work as expected if the url of the page does not contain a get variable #6119

Closed
@jamesjnadeau

Description

@jamesjnadeau

I've outlined this here as well:
https://forum.jquery.com/topic/form-submit-button-in-jquery-mobile-popup-does-not-do-post-back-on-first-click#14737000004284831

Seems someone found this problem before I did but didn't leave enough for someone to run with. I hope to have filled this gap.

(all of this involves the first page load, I'm not navigating anywhere else via ajax)

I have created an example of this issue here:
http://jsbin.com/ikijas

The gist of the issue is that if I am on a page with url such as:
example.com/test/

and I have a form contained with in a popup, it will not submit on the first try, but will close the popup. Upon opening the popup again, and clicking on the same button(which will now have the ui-btn-active class), the form then submits as expected.

On a page such as:
example.com/test?test=1

Everything works as expected.

Thank you in advance for your time! Any help or suggestions are much appreciated.

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions