fix(tab): rollback a11y implementation

This commit is contained in:
José Rio
2025-02-06 17:28:12 +00:00
parent 5546e95288
commit 6b164c8f44

View File

@@ -55,12 +55,7 @@ export class Tab implements ComponentInterface {
@Watch('active')
changeActive(isActive: boolean) {
if (isActive) {
// ensure tabindex gets updated before setting focus to the element
setTimeout(() => {
this.el.focus();
}, 50);
if (isActive) {
this.prepareLazyLoaded();
}
}
@@ -88,7 +83,6 @@ export class Tab implements ComponentInterface {
'ion-page': component === undefined,
'tab-hidden': !active,
}}
tabIndex={!active ? '-1' : '0'}
>
<slot></slot>
</Host>