Feature #1912
openJavascript blur event not receicved in IE 10 for a div with tabindex=0 when clicking in the div
0%
Description
Hi!
I have the following issue:
I build a small WT sample with a black div which has tabindex=0 and has a associated javascript events for blur an focus which logs in browser console if the div has focus or loses it.
On Chrome and Firefox it works, meaning when clicking inside the black div you get 'got focus' and when clicking outside you get 'lost focus'.
On IE 10 with document mode: Standards you can't gain focus in div with a mouse click but only using Tab key. You can lose focus with a click outside the box.
Files
Updated by Koen Deforche almost 11 years ago
- Status changed from New to Feedback
- Assignee set to Koen Deforche
Hey,
I tried your example with IE8 and indeed focus isn't received.
But when commenting out setSelectable(false), it does work (and will probably work also in IE10?)
setSelectable(false) and wanting a widget to receive focus does seemingly conflict somewhat?
Regards,
koen
Updated by Bogdan Cosescu almost 11 years ago
How about the fact that it works in Chrome and Firefox?
I see an inconsistency here. For now I put the focus manually on mouse click in the div for IE clients.
Updated by Koen Deforche almost 11 years ago
Hey Bogdan,
Yes, it is not consistent, but then again, setAttributeValue() isn't guaranteed to have the same effect in every browser... The proper solution is to have a proper setTabIndex() support so that we can deal with inconsistencies.
Regards,
koen
Updated by Koen Deforche over 10 years ago
- Tracker changed from Bug to Feature
- Status changed from Feedback to New
- Target version changed from 3.3.0 to 3.3.2