Dynamically add or remove Tab component,may cause compoment's selected status abnormally #1494
mahiru-forever
started this conversation in
General
Replies: 1 comment 1 reply
-
Duplicate of #368
The workaround is to use the {#key tabs}
<Tabs>
{#each tabs as tab}
...
{/each}
</Tabs>
{/key |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Whatever i use the selected(Tabs component's props) or not, it always operation abnormally.I saw the code, Tabs Component's tabs variable seem only perceive the newly added Tab component, but when delete, tabs is no change. I'm not sure it's my code wrong or not used correctly.
Look forward to your answer.
Beta Was this translation helpful? Give feedback.
All reactions