答案 0 :(得分:1)
你必须在按钮点击处理程序中包含event.stopEvent()。这就对了。 :)
declineRequestButtonTap: function (self,event) {
console.log('decline button tap functionality'); //your code
event.stopEvent(); //this stops the itemtap event
},
onRequestItemTap: function (list, idx, el, record) {
console.log('I didn't press the button I pressed anywhere out of the button but inside the item list.') //your code
},
或者如果您在视图中有监听器
xtype: 'button',
flex: 1,
text: 'decline',
ui: 'decline',
listeners: {
tap: function (self,event) {
//your code
event.stopEvent();
}