Skip to content

Commit

Permalink
Fix toolbutton autodisable block by IWBS (extends commit 7c59349)
Browse files Browse the repository at this point in the history
  • Loading branch information
JamsonChan committed Sep 28, 2023
1 parent 2057f7d commit a9cc212
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions zul/src/main/resources/web/js/zul/wgt/Toolbarbutton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -426,13 +426,12 @@ export class Toolbarbutton extends zul.LabelImageWidget implements zul.LabelImag
/** @internal */
override doClick_(evt: zk.Event<zk.EventMetaData>, popupOnly?: boolean): void {
if (!this._disabled) {
this.fireX(evt);
if (!this._upload)
zul.wgt.ADBS.autodisable(this);
else
this._uplder!.openFileDialog();

this.fireX(evt);

if (!evt.stopped) {
var href = this._href,
isMailTo = href ? href.toLowerCase().startsWith('mailto:') : false;
Expand Down

0 comments on commit a9cc212

Please sign in to comment.