PDA

View Full Version : Sencha Touch's event cancelBubble BUG



wuyahuang
14 Sep 2011, 5:11 AM
Hello,everyone.I use sencha touch develop an app these days.And I get a Sencha Touch bug today.

At first,I would like talk about the event cancelBubble in the HTML.look at code below.execute those code.When I click black area.two listener will be trigger.


<div onclick='alert("asdfasdf");' style="width:1000px;height:800px;background-color:red;">
<dl onclick='alert("1111");' style="width:600px;height:600px;background-color:black;">
</dl>
</div>


and if I add some code in the second onclick listener.like this:


window.event.cancelBubble = true;event.stopPropagation();

So first listener's Bubble will be cancel.

But the problem is:when I take these code to a sencha touch component XTemplate.And this XTemplate is in a Ext.List.The event Bubble cannot be cancel.When I click one time.Two Listeners are trigger.

Is this a bug of sencha touch?