We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This happens when rendering an array of <Card>s with nested <Tab>s.
<Card>
<Tab>
Let's say I have an array of 10 cards, each w/ tabs, which I render via a .map() call. I also have filter toggles that add/remove cards.
.map()
If I click on the second tab of the first card, then toggle a filter that makes that card disappear, the new first card shows up with tab 2 active.
The data for the card is correct--title, picture, etc., but the tab position is leftover from the previous #1 card.
This is the case both with and without controlled tabs.
create a series of cards (with nested <Tabs>) via .map()
<Tabs>
create a state-driven filter
Pick a non-default tab on the first card
Apply filter that removes 1st card
New first card should be stuck on the tab you picked before filtering
The text was updated successfully, but these errors were encountered:
Turns out I was using index for a key, which isn't a value that's unique to the item in the array, so sort etc. got things all mixed up.
index
key
sort
Sorry, something went wrong.
No branches or pull requests
Problem description
This happens when rendering an array of
<Card>
s with nested<Tab>
s.Let's say I have an array of 10 cards, each w/ tabs, which I render via a
.map()
call. I also have filter toggles that add/remove cards.If I click on the second tab of the first card, then toggle a filter that makes that card disappear, the new first card shows up with tab 2 active.
The data for the card is correct--title, picture, etc., but the tab position is leftover from the previous #1 card.
This is the case both with and without controlled tabs.
Steps to reproduce
create a series of cards (with nested
<Tabs>
) via.map()
create a state-driven filter
Pick a non-default tab on the first card
Apply filter that removes 1st card
New first card should be stuck on the tab you picked before filtering
Versions
The text was updated successfully, but these errors were encountered: