Opened 10 years ago

Closed 10 years ago

Last modified 7 years ago

#4544 closed bug (notabug)

Modal dialog prevents form submission

Reported by: BigBadaboom Owned by:
Priority: minor Milestone:
Component: ui.dialog Version: 1.7.1
Keywords: Cc:
Blocked by: Blocking:

Description

I am attempting to use a modal dialog to confirm form submission. However if I any attempt to submit the form in the dialog's 'confirm' button event handler fails (nothing happens).

For example, see the attached test case.

I would expect this test case to work, however clicking confirm does nothing, and no errors are raised. Any code inserted into the button handler following the 'submit()' call is executed as expected, so it appears the submit() call is actually called called, it just exits quietly without doing anything.

Other things I've attempted such as using $("#testform").get(0).submit() to call the form's submit method directly also fail.

Attachments (1)

uibug.html (1.4 KB) - added by BigBadaboom 10 years ago.

Download all attachments as: .zip

Change History (4)

Changed 10 years ago by BigBadaboom

Attachment: uibug.html added

comment:1 Changed 10 years ago by BigBadaboom

Sorry, please close this bug. It has nothing to do with jQuery UI. The problem was due to the form field (button) named 'submit' overriding the form's submit() method.

I was in a rush to file the bug before going to bed and I should have done more testing. :(

comment:2 Changed 10 years ago by Jörn Zaefferer

Resolution: invalid
Status: newclosed

Thanks for the update.

comment:3 Changed 7 years ago by Scott González

Milestone: TBD

Milestone TBD deleted

Note: See TracTickets for help on using tickets.