Opened 12 years ago

Closed 12 years ago

Last modified 9 years ago

#5829 closed defect (fixed)

Slider handle doesn't get focus consistently

Reported by: guest Owned by: Douglas Hays
Priority: high Milestone: 1.1
Component: Dijit - Form Version: 1.0
Keywords: slider, onclick, focus Cc:
Blocked By: Blocking:

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 (3)

comment:1 Changed 12 years ago by Adam Peller

Milestone: 1.0.31.1
Owner: set to Douglas Hays

comment:2 Changed 12 years ago by Douglas Hays

Resolution: fixed
Status: newclosed

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

comment:3 Changed 9 years ago by bill

Component: DijitDijit - Form
Note: See TracTickets for help on using tickets.