#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)
Change History (4)
Changed 10 years ago by
comment:1 Changed 10 years ago by
Interestingly enough, this example works if you place id="submit" on the input, but fails without it.
comment:2 Changed 9 years ago by
Component: | unfiled → event |
---|
comment:3 Changed 9 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Works as expected in jQuery 1.4.2.
Note: See
TracTickets for help on using
tickets.
Example HTML of bug.