Skip to content

Commit d219714

Browse files
committed
fix(bottom-navigation/tabs): android fix for loaded/unloaded not called on tab change
1 parent c251bc4 commit d219714

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ export class TabNavigationBase extends TabNavigationBaseBase implements TabsDefi
4949
return;
5050
}
5151

52-
const offsideItems = this.offscreenTabLimit;
52+
// const offsideItems = this.offscreenTabLimit;
53+
// use 0 because users expect load/unload to be like selected/unselected
54+
const offsideItems = 0;
5355

5456
const toLoad: TabContentItem[] = [];
5557
const toUnload: TabContentItem[] = [];

0 commit comments

Comments
 (0)