Ticket #5829 (closed defect: fixed)

Opened 9 months ago

Last modified 9 months ago

Slider handle doesn't get focus consistently

Reported by: guest Owned by: doughays
Priority: normal Milestone: 1.1
Component: Dijit Version: 1.0
Severity: normal Keywords: slider, onclick, focus
Cc:

Description

If you go to:

http://download.dojotoolkit.org/release-1.0.2/dojo-release-1.0.2/dijit/tests/form/test_Slider.html

In firefox (osx/xp) and safari.

If you click on the slider, slide it to a new position and with the mouse down move your mouse off the slider drag handle and let go the slider does not get focus. If you keep the mouse over the handle when you let go it gets focus, if you click on the bar, it gets focus. It should really get focus onmousedown rather than onclick.

If you change the sliderHandle dojoAttachEvent from...

dojoAttachEvent="onkeypress:_onKeyPress,onclick:_onHandleClick"

to

dojoAttachEvent="onkeypress:_onKeyPress,onmousedown:_onHandleClick"

It seems to work much more consistently and as you would expect.

Change History

Changed 9 months ago by peller

  • owner set to doughays
  • milestone changed from 1.0.3 to 1.1

Changed 9 months ago by doughays

  • status changed from new to closed
  • resolution set to fixed

(In [12396]) Fixes #5829. Changed handle event from onclick to onmousedown.

Note: See TracTickets for help on using tickets.