Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[Bug] TabView goes into tab switching loop after quickly switching tabs. #1746

Open
Pastajello opened this issue Nov 30, 2021 · 4 comments
Open
Labels
bug Something isn't working. Breaky break.

Comments

@Pastajello
Copy link

Pastajello commented Nov 30, 2021

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

  1. Create some heavy tabs
  2. Quickly tap on different tabs
  3. 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

mp4.mp4
@Pastajello Pastajello added the bug Something isn't working. Breaky break. label Nov 30, 2021
@Pastajello Pastajello changed the title [Bug] TabView goes into SelectedItem changed loop after quickly switching tabs. [Bug] TabView goes into tab switching loop after quickly switching tabs. Nov 30, 2021
@SarthakGz
Copy link

I also encountered this issue.will debug soon to find the issue in codebase

@bradlak
Copy link

bradlak commented Dec 24, 2021

I have the same issue.
Do you have any fix or workaround for it ?

@PinoPinillo
Copy link

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.

@LeoJHarris
Copy link
Contributor

To be fair the tab view is quite buggy, hope some of these are resolved in maui.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working. Breaky break.
Projects
None yet
Development

No branches or pull requests

5 participants