Browse Source

KERNEL-12202 fix:把comsume换成isIntercepted

es6
treecat 2 years ago
parent
commit
8ad2fe413c
  1. 4
      src/base/single/button/button.basic.js

4
src/base/single/button/button.basic.js

@ -332,9 +332,9 @@ BI.BasicButton = BI.inherit(BI.Single, {
_doClick: function (e) {
if (this.isValid()) {
var consume = this.beforeClick(e);
var isIntercepted = this.beforeClick(e);
// 如果事件已经被消费掉了,就不再触发点击事件
if (consume) {
if (isIntercepted) {
return;
}
}

Loading…
Cancel
Save