Skip to content

Commit cfbf9c0

Browse files
committed
fix(ui5-busy-indicator): fix double focus issue (#1779)
1 parent 7b50931 commit cfbf9c0

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
@@ -52,7 +52,10 @@ const metadata = {
5252
* @defaultvalue "Medium"
5353
* @public
5454
*/
55-
size: { type: BusyIndicatorSize, defaultValue: BusyIndicatorSize.Medium },
55+
size: {
56+
type: BusyIndicatorSize,
57+
defaultValue: BusyIndicatorSize.Medium,
58+
},
5659

5760
/**
5861
* Defines if the busy indicator is visible on the screen. By default it is not.
@@ -61,7 +64,9 @@ const metadata = {
6164
* @defaultvalue false
6265
* @public
6366
*/
64-
active: { type: Boolean },
67+
active: {
68+
type: Boolean,
69+
},
6570
},
6671
};
6772

@@ -107,7 +112,7 @@ class BusyIndicator extends UI5Element {
107112
if (this.active) {
108113
this.tabIndex = -1;
109114
} else {
110-
this.tabIndex = 0;
115+
this.removeAttribute("tabindex");
111116
}
112117
}
113118

0 commit comments

Comments
 (0)