From a9cc212f34771d41c17eb686e55a3baaf7bf1b16 Mon Sep 17 00:00:00 2001 From: Jamson Chan <86592497+JamsonChan@users.noreply.github.com> Date: Thu, 28 Sep 2023 15:28:17 +0800 Subject: [PATCH] Fix toolbutton autodisable block by IWBS (extends commit 7c59349) --- zul/src/main/resources/web/js/zul/wgt/Toolbarbutton.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/zul/src/main/resources/web/js/zul/wgt/Toolbarbutton.ts b/zul/src/main/resources/web/js/zul/wgt/Toolbarbutton.ts index e8bdab57bac..a0ffe5c5e3c 100644 --- a/zul/src/main/resources/web/js/zul/wgt/Toolbarbutton.ts +++ b/zul/src/main/resources/web/js/zul/wgt/Toolbarbutton.ts @@ -426,13 +426,12 @@ export class Toolbarbutton extends zul.LabelImageWidget implements zul.LabelImag /** @internal */ override doClick_(evt: zk.Event, 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;