#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 13 years ago by
Milestone: | 1.0.3 → 1.1 |
---|---|
Owner: | set to Douglas Hays |
comment:2 Changed 13 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:3 Changed 10 years ago by
Component: | Dijit → Dijit - Form |
---|
(In [12396]) Fixes #5829. Changed handle event from onclick to onmousedown.