Opened 10 years ago

Closed 10 years ago

#15049 closed defect (fixed) 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:


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="">
    <li data-dojo-type=""
        data-dojo-props='moveTo:"bar"' onclick="myClick()">

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

Change History (2)

comment:1 Changed 10 years ago by ykami

Milestone: tbd1.8
Priority: undecidedhigh
Status: newassigned

comment:2 Changed 10 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.