Skip to content

Commit 3984b50

Browse files
committed
fix(tabs,ios): fix tabs not swipable after first scroll
1 parent d3e30fe commit 3984b50

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/core-tabs/tab-navigation/index.ios.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,9 @@ export abstract class TabNavigation<
529529
}
530530

531531
public onItemsChanged(oldItems: TabContentItem[], newItems: TabContentItem[]): void {
532-
this.mNeedsCacheUpdate = true;
532+
if (this.isLoaded) {
533+
this.mNeedsCacheUpdate = true;
534+
}
533535
super.onItemsChanged(oldItems, newItems);
534536
if (oldItems) {
535537
if (!this.mCanSelectItem) {

0 commit comments

Comments
 (0)