This repository has been archived by the owner on Nov 27, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: update currentIndexRef when tab is switched by clicking tab bar (#…
…1232) There's a minor bug in web version of tabview. `currentIndexRef` in Pager.tsx file is only updated when tabs are switched using gesture. When they are switched using tab bar, you can not navigate back to tab which was mounted first. Steps to reproduce: Create a tabview with 3 tabs. Let say initial navigationState is { index: 0, title: 'abc' }. Now switch to any of the other 2 tabs Now try to switch to 1st tab . It won't switch Please note that gesture is not being used. `navigationState` is being updated and passed to TabView. In case of gesture it works correctly. Co-authored-by: Kevin <kavin.patel@sprinklr.com> Co-authored-by: Satyajit Sahoo <satyajit.happy@gmail.com>
- Loading branch information