Ticket #6300 (closed Bug: invalid)
'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: |
Description
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
Attachments
Change History
comment:1 Changed 20 months 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.

Test file, demonstrates the bug