Skip to main content

Bug Tracker

Side navigation

#5916 closed bug (duplicate)

Opened January 24, 2010 02:29AM UTC

Closed January 24, 2010 03:38PM UTC

Last modified March 14, 2012 12:57AM UTC

e.preventDefault doesn't work with live submit

Reported by: rmurphey Owned by: brandon
Priority: major Milestone: 1.4.1
Component: event Version: 1.4
Keywords: Cc:
Blocked by: Blocking:
Description

When a submit handler is bound to a form using .live(), and the submit handler includes e.preventDefault(), the form still submits when the submit event is triggered using .trigger(). When the same submit handler is bound using .bind(), the form is not submitted.

Test case: http://jsbin.com/arepo/3/edit

Attachments (0)
Change History (3)

Changed January 24, 2010 02:49AM UTC by paul.irish comment:1

this is a dupe of #5695

Changed January 24, 2010 03:19AM UTC by rwaldron comment:2

Attempted same test above with:

return false;

in place of e.preventDefault();

And produced same results

Changed January 24, 2010 03:38PM UTC by dmethvin comment:3

resolution: → duplicate
status: newclosed

Paul's cross-referenced this in #5695 so I'll close it as a dupe.