Project

General

Profile

Actions

Feature #1912

open

Javascript blur event not receicved in IE 10 for a div with tabindex=0 when clicking in the div

Added by Bogdan Cosescu almost 11 years ago. Updated about 10 years ago.

Status:
New
Priority:
Normal
Assignee:
Target version:
-
Start date:
05/20/2013
Due date:
% Done:

0%

Estimated time:

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

BlurNotRecivedIE10.zip (2.7 MB) BlurNotRecivedIE10.zip Bogdan Cosescu, 05/20/2013 04:47 PM
Actions #1

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

Actions #2

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.

Actions #3

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

Actions #4

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
Actions #5

Updated by Koen Deforche about 10 years ago

  • Target version deleted (3.3.2)
Actions

Also available in: Atom PDF