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

Loading…
Cancel
Save