Bug Tracker

Opened 10 years ago

Closed 9 years ago

Last modified 8 years ago

#5860 closed bug (worksforme)

preventDefault() does not work in live('submit, ...) when triggered from $('form').submit()

Reported by: orderedlist Owned by:
Priority: minor Milestone: 1.4.1
Component: event Version: 1.4
Keywords: live submit Cc:
Blocked by: Blocking:

Description

When triggering a form submission from the submit() method, the event cannot be cancelled as normal, with either return false; or event.preventDefault();

I have attached a test html file.

Attachments (1)

test.html (609 bytes) - added by orderedlist 10 years ago.
Example HTML of bug.

Download all attachments as: .zip

Change History (4)

Changed 10 years ago by orderedlist

Attachment: test.html added

Example HTML of bug.

comment:1 Changed 10 years ago by orderedlist

Interestingly enough, this example works if you place id="submit" on the input, but fails without it.

comment:2 Changed 9 years ago by dmethvin

Component: unfiledevent

comment:3 Changed 9 years ago by snover

Resolution: worksforme
Status: newclosed

Works as expected in jQuery 1.4.2.

Note: See TracTickets for help on using tickets.