Opened 7 years ago

Closed 7 years ago

#15049 closed defect (fixed)

dojox.mobile.parser: event handler is called twice

Reported by: ykami Owned by: ykami
Priority: high Milestone: 1.8
Component: DojoX Mobile Version: 1.7.2
Keywords: Cc:
Blocked By: Blocking:

Description

If you run the following example and click on the ListItem, you will see the alert() dialog twice. One is from the _onClick handler, another is from the dom node's native onclick handler.

<ul data-dojo-type="dojox.mobile.RoundRectList">
    <li data-dojo-type="dojox.mobile.ListItem"
        data-dojo-props='moveTo:"bar"' onclick="myClick()">
        Slide
    </li>
</ul>

Both dojo.parser and dojox.mobile.parser had this problem. But recently, dojo.parser solved this problem (#15026). dojox.mobile.parser should fix it too.

Change History (2)

comment:1 Changed 7 years ago by ykami

Milestone: tbd1.8
Priority: undecidedhigh
Status: newassigned

comment:2 Changed 7 years ago by ykami

Resolution: fixed
Status: assignedclosed

In [28202]:

Fixes #15049 !strict. Remove dom's native event handler to prevent the user's event handler from being called twice.

Note: See TracTickets for help on using tickets.