Opened 9 years ago

Closed 3 years ago

#11870 closed defect (fixed)

dojox.form.Rating mouseout event broken in dojo 1.5.0

Reported by: jchase Owned by: dylan
Priority: high Milestone: 1.8
Component: DojoX Form Version: 1.5
Keywords: rating Cc:
Blocked By: Blocking:

Description

The dojox.form.Rating widget doesn't seem to reset properly upon mouse out - the hover state gets "stuck". Tried in FF 3.6.10 using the dojo test case: http://download.dojotoolkit.org/release-1.5.0/dojo-release-1.5.0/dojox/form/tests/test_Rating.html

For an example of how it's supposed to work: http://download.dojotoolkit.org/release-1.3.3/dojo-release-1.3.3/dojox/form/tests/test_Rating.html

(This also worked in release 1.4.3, I just didn't see a test case handy for it).

Change History (4)

comment:1 Changed 8 years ago by davliu

I encountered the same problem in 1.5, and I finally found a workaround to get rid of this problem. here is the solution:

add the code:

            if(evt.type=="mouseout") {
                this._hovering = false;
            } else {
                this._hovering = true;
            }

right after the

_onMouse: function(evt)

in Rating.js file

comment:2 Changed 8 years ago by jchase

Thanks! That worked perfectly.

comment:3 Changed 3 years ago by dylan

Milestone: tbd1.12
Owner: changed from dante to dylan
Status: newassigned

comment:4 Changed 3 years ago by dylan

Milestone: 1.121.8
Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.