Skip to main content

Search and Top Navigation

#4544 closed bug (notabug)

Opened May 20, 2009 06:23PM UTC

Closed May 22, 2009 11:19AM UTC

Last modified October 11, 2012 09:15PM UTC

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 May 20, 2009 06:23PM UTC.
Change History (3)

Changed May 21, 2009 11:55AM UTC by BigBadaboom comment:1

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. :(

Changed May 22, 2009 11:19AM UTC by jzaefferer comment:2

resolution: → invalid
status: newclosed

Thanks for the update.

Changed October 11, 2012 09:15PM UTC by scottgonzalez comment:3

milestone: TBD

Milestone TBD deleted