Skip to content

Commit 576d769

Browse files
authored
fix(ui5-segmentedbutton): button can no longer be clicked when disabled (#1393)
1 parent ca90fbf commit 576d769

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/main/src/SegmentedButton.js

+4
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,10 @@ class SegmentedButton extends UI5Element {
136136
}
137137

138138
_onclick(event) {
139+
if (event.target.disabled || event.target === this.getDomRef()) {
140+
return;
141+
}
142+
139143
if (event.target !== this._selectedButton) {
140144
if (this._selectedButton) {
141145
this._selectedButton.pressed = false;

0 commit comments

Comments
 (0)