Skip to content

Commit

Permalink
fix(ui5-busy-indicator): fix double focus issue (#1779)
Browse files Browse the repository at this point in the history
  • Loading branch information
fifoosid committed Jun 12, 2020
1 parent 36d0eca commit f7bc0aa
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions packages/main/src/BusyIndicator.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ const metadata = {
* @defaultvalue "Medium"
* @public
*/
size: { type: BusyIndicatorSize, defaultValue: BusyIndicatorSize.Medium },
size: {
type: BusyIndicatorSize,
defaultValue: BusyIndicatorSize.Medium,
},

/**
* Defines if the busy indicator is visible on the screen. By default it is not.
Expand All @@ -62,7 +65,9 @@ const metadata = {
* @defaultvalue false
* @public
*/
active: { type: Boolean },
active: {
type: Boolean,
},
},
};

Expand Down Expand Up @@ -108,7 +113,7 @@ class BusyIndicator extends UI5Element {
if (this.active) {
this.tabIndex = -1;
} else {
this.tabIndex = 0;
this.removeAttribute("tabindex");
}
}

Expand Down

0 comments on commit f7bc0aa

Please sign in to comment.