mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(tab): rollback a11y implementation
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user