Browse Source

BI-125490 fix:basicbutton

es6
Treecat 2 years ago
parent
commit
8fc4a8de86
  1. 5
      packages/fineui/src/base/single/button/button.basic.js

5
packages/fineui/src/base/single/button/button.basic.js

@ -168,7 +168,8 @@ export class BasicButton extends Single {
return bubble; return bubble;
}; };
const clk = async e => { const clk = async (...args) => {
const [e] = args;
ev(e); ev(e);
if (!this.isEnabled() || !this.isValid()) { if (!this.isEnabled() || !this.isValid()) {
return; return;
@ -243,7 +244,7 @@ export class BasicButton extends Single {
return; return;
} }
onClick.apply(this, arguments); onClick.apply(this, args);
}; };
const triggerArr = (o.trigger || "").split(","); const triggerArr = (o.trigger || "").split(",");

Loading…
Cancel
Save