XamarinCommunityToolkit
XamarinCommunityToolkit copied to clipboard
[Bug] TabView goes into tab switching loop after quickly switching tabs.
Description
After creating tabView with some tabs, if the tabs are heavy or there is some calculation between switching them, and the switching is not super smooth - propably takes longer then animation consider - pressing another tab is making TabView go into loop of selecting tabs.
Link to Reproduction Sample
https://github.com/Miksier/tabview_bug_sample
Steps to Reproduce
- Create some heavy tabs
- Quickly tap on different tabs
- loop of tab switching
Expected Behavior
Tabs are being blocked while the animation is in progress so no clicking is allowed?
Actual Behavior
loop
Basic Information
-
Version with issue: 1.3.1
-
Last known good version: -
-
IDE: VS 2019 Version 16.11.7
-
Platform Target Frameworks:
- Android: 11
-
Nuget Packages: Xamarin.CommunityToolkit 1.3.1 Xamarin.Forms 5.0.0.2244
Reproduction imagery
https://user-images.githubusercontent.com/28345098/144035272-20b52c91-b609-4b50-9ee2-fd56b8832ca4.mp4
I also encountered this issue.will debug soon to find the issue in codebase
I have the same issue. Do you have any fix or workaround for it ?
Any news around this? I have the same problem. And I discover that with iOS, tabs don't enter in a loop but the ContentView inside one of the TabViewItems disappears. Not sure if this is related or not.
To be fair the tab view is quite buggy, hope some of these are resolved in maui.