Skip to content

Commit

Permalink
fix(ui5-segmentedbutton): button can no longer be clicked when disabl…
Browse files Browse the repository at this point in the history
…ed (#1393)
  • Loading branch information
ivoplashkov committed Mar 30, 2020
1 parent ca90fbf commit 576d769
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/main/src/SegmentedButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ class SegmentedButton extends UI5Element {
}

_onclick(event) {
if (event.target.disabled || event.target === this.getDomRef()) {
return;
}

if (event.target !== this._selectedButton) {
if (this._selectedButton) {
this._selectedButton.pressed = false;
Expand Down

0 comments on commit 576d769

Please sign in to comment.