Ticket #6300 (closed Bug: invalid)

Opened 5 years ago

Last modified 4 years ago

'focus' and 'blur' events will not fire in Chrome 6.0.472.55

Reported by: Scalar Owned by:
Priority: Normal Milestone:
Component: General Version: 3.4
Keywords: Cc:


If we bind handler for 'focus' or 'blur' event, it will not be fired in Google Chrome.

Browser: Google Chrome 6.0.472.55 OS: Windows XP


test.html (1.3 KB) - added by Scalar 5 years ago.
Test file, demonstrates the bug

Change History

Changed 5 years ago by Scalar

Test file, demonstrates the bug

comment:1 Changed 4 years ago by j.swiderski

  • Status changed from new to closed
  • Keywords blur,focus,chrome removed
  • Resolution set to invalid

This is because e.document.on( 'focus' and e.document.on( 'blur' - is NOT guaranteed to work, as per each browser way of work. Some browsers focus the documentElement, some the body and some are just tricky.

To get this example working one should use (This is the correct way):

e.on('focus', TestFocus);
e.on('blur', TestBlur);
e.document.on('click', TestClick);
Note: See TracTickets for help on using tickets.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy