Skip to content

Commit f7bc0aa

Browse files
authored
fix(ui5-busy-indicator): fix double focus issue (#1779)
1 parent 36d0eca commit f7bc0aa

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

packages/main/src/BusyIndicator.js

+8-3
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@ const metadata = {
5353
* @defaultvalue "Medium"
5454
* @public
5555
*/
56-
size: { type: BusyIndicatorSize, defaultValue: BusyIndicatorSize.Medium },
56+
size: {
57+
type: BusyIndicatorSize,
58+
defaultValue: BusyIndicatorSize.Medium,
59+
},
5760

5861
/**
5962
* Defines if the busy indicator is visible on the screen. By default it is not.
@@ -62,7 +65,9 @@ const metadata = {
6265
* @defaultvalue false
6366
* @public
6467
*/
65-
active: { type: Boolean },
68+
active: {
69+
type: Boolean,
70+
},
6671
},
6772
};
6873

@@ -108,7 +113,7 @@ class BusyIndicator extends UI5Element {
108113
if (this.active) {
109114
this.tabIndex = -1;
110115
} else {
111-
this.tabIndex = 0;
116+
this.removeAttribute("tabindex");
112117
}
113118
}
114119

0 commit comments

Comments
 (0)