Skip to main content

Bug Tracker

Side navigation

#10712 closed bug (fixed)

Opened November 08, 2011 03:15AM UTC

Closed November 09, 2011 04:08AM UTC

Last modified March 08, 2012 09:13PM UTC

Triggering blur with live bind broken

Reported by: gabelerner@gmail.com Owned by: dmethvin
Priority: high Milestone: 1.7.1
Component: event Version: 1.7
Keywords: Cc:
Blocked by: Blocking:
Description

http://jsfiddle.net/QrNXX/

clicking into box and blurring via browser alerts.

onload it doesn't alert (it should, and does if you switch version to 1.6.4)

Attachments (0)
Change History (4)

Changed November 08, 2011 02:16PM UTC by dmethvin comment:1

component: unfiledevent
milestone: None1.7.1
owner: → dmethvin
priority: undecidedhigh
status: newassigned

Ugh. This is because blur bubbles as focusout. The element isn't really focused (you're just trying to run the handlers) so the browser doesn't fire a blur or focusout event. It's a legit use case though.

Changed November 08, 2011 04:20PM UTC by gabelerner@gmail.com comment:2

Thanks for looking at it!

Focusing on it prior to running blur does indeed work. http://jsfiddle.net/GLjFg/

Also, trying to go through trigger('blur') does not work, whereas a custom event does. http://jsfiddle.net/yPY2G/

Changed November 09, 2011 04:08AM UTC by Dave Methvin comment:3

resolution: → fixed
status: assignedclosed

Fix #10712. Deal with focus/blur morphing to focusin/focusout.

Changeset: 39f9b846e722600aece0a5428e38e9b12217395e

Changed November 16, 2011 04:25PM UTC by dmethvin comment:4

#10803 is a duplicate of this ticket.