From 6b164c8f44d617d7ecf6b3052c2f53f3b5cd917f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jose=CC=81=20Rio?= Date: Thu, 6 Feb 2025 17:28:12 +0000 Subject: [PATCH] fix(tab): rollback a11y implementation --- core/src/components/tab/tab.tsx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/core/src/components/tab/tab.tsx b/core/src/components/tab/tab.tsx index 6cf7dec8f3..a822282db3 100644 --- a/core/src/components/tab/tab.tsx +++ b/core/src/components/tab/tab.tsx @@ -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'} >