Skip to content

Commit 6b164c8

Browse files
committed
fix(tab): rollback a11y implementation
1 parent 5546e95 commit 6b164c8

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

core/src/components/tab/tab.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,7 @@ export class Tab implements ComponentInterface {
5555

5656
@Watch('active')
5757
changeActive(isActive: boolean) {
58-
if (isActive) {
59-
// ensure tabindex gets updated before setting focus to the element
60-
setTimeout(() => {
61-
this.el.focus();
62-
}, 50);
63-
58+
if (isActive) {
6459
this.prepareLazyLoaded();
6560
}
6661
}
@@ -88,7 +83,6 @@ export class Tab implements ComponentInterface {
8883
'ion-page': component === undefined,
8984
'tab-hidden': !active,
9085
}}
91-
tabIndex={!active ? '-1' : '0'}
9286
>
9387
<slot></slot>
9488
</Host>

0 commit comments

Comments
 (0)