Skip to content

Commit d9bbac7

Browse files
authored
fix(ui5-button): remove reference to last clicked button (#12370)
Fixes: #11865
1 parent 341b467 commit d9bbac7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/main/src/Button.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,10 @@ class Button extends UI5Element implements IButton {
444444
this.removeEventListener("click", this._onclickBound);
445445
this._clickHandlerAttached = false;
446446
}
447+
448+
if (activeButton === this) {
449+
activeButton = null;
450+
}
447451
}
448452

449453
async onBeforeRendering() {

0 commit comments

Comments
 (0)