Bug Tracker

Modify

Ticket #10712 (closed bug: fixed)

Opened 19 months ago

Last modified 15 months ago

Triggering blur with live bind broken

Reported by: gabelerner@… Owned by: dmethvin
Priority: high Milestone: 1.7.1
Component: event Version: 1.7
Keywords: Cc:
Blocking: Blocked by:

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)

Change History

comment:1 Changed 19 months ago by dmethvin

  • Owner set to dmethvin
  • Priority changed from undecided to high
  • Status changed from new to assigned
  • Component changed from unfiled to event
  • Milestone changed from None to 1.7.1

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.

comment:2 Changed 19 months ago by gabelerner@…

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/

comment:3 Changed 19 months ago by Dave Methvin

  • Status changed from assigned to closed
  • Resolution set to fixed

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

Changeset: 39f9b846e722600aece0a5428e38e9b12217395e

comment:4 Changed 19 months ago by dmethvin

#10803 is a duplicate of this ticket.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.