Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mat Tabs endless toggling issue on fast changing of tabs #24096

Open
hoangdoantrung opened this issue Dec 13, 2021 · 3 comments
Open

Mat Tabs endless toggling issue on fast changing of tabs #24096

hoangdoantrung opened this issue Dec 13, 2021 · 3 comments
Labels
area: material/tabs P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent

Comments

@hoangdoantrung
Copy link

hoangdoantrung commented Dec 13, 2021

We ran into this loop recently. The problem was that we listened to selectedTabChange and not selectedIndexChange. The former is still called synchronously inside the TabGroup component and therefore triggers the loop.

Originally posted by @dummdidumm in #19506 (comment)

We had the same issue using selectedTabChange. Everything seems OK with selectedIndexChange.

@hoangdoantrung hoangdoantrung changed the title We ran into this loop recently. The problem was that we listened to selectedTabChange and not selectedIndexChange. The former is still called synchronously inside the TabGroup component and therefore triggers the loop. Mat Tabs endless toggling issue on fast changing of tabs Dec 13, 2021
@crisbeto
Copy link
Member

Can you post an example showing the issue?

@crisbeto crisbeto added area: material/tabs needs: clarification The issue does not contain enough information for the team to determine if it is a real bug labels Dec 20, 2021
@dummdidumm
Copy link

This fix needs to be applied to selectedTabChange as well in order to fix this.

@andrewseguin andrewseguin added the P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent label Jun 1, 2023
@mmalerba mmalerba removed the needs: clarification The issue does not contain enough information for the team to determine if it is a real bug label Sep 25, 2023
@dananaprey
Copy link

Replacing selectedTabChange with selectedIndexChange works for me too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: material/tabs P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Projects
None yet
Development

No branches or pull requests

6 participants