We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9f8c13 commit e4957faCopy full SHA for e4957fa
core/src/components/tab/tab.tsx
@@ -56,6 +56,11 @@ export class Tab implements ComponentInterface {
56
@Watch('active')
57
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
+
64
this.prepareLazyLoaded();
65
}
66
@@ -83,6 +88,7 @@ export class Tab implements ComponentInterface {
83
88
'ion-page': component === undefined,
84
89
'tab-hidden': !active,
85
90
}}
91
+ tabIndex={!active ? -1 : 0}
86
92
>
87
93
<slot></slot>
94
</Host>
0 commit comments