Skip to content
This repository has been archived by the owner on Sep 26, 2022. It is now read-only.

Tab underline width doesn't change when the data of the tab changes #161

Open
nateshmbhat opened this issue Mar 6, 2021 · 0 comments
Open
Labels
bug Something isn't working

Comments

@nateshmbhat
Copy link
Contributor

<Tabs
  value={$tabListConfigStore.activeTabIndex}
  on:change={onTabChange}>
  <div slot="tabs">
    {#each tabs as tab, i (i)}
      <Tab>
        {#if name}{name}{:else}{'RPC'}{/if}
      </Tab>
    {/each}
</Tabs>

I have a tab bar code that looks like shown above.
The name is a reactive variable. When the tab first shows up , name is undefined. So the tab has the underline that spans the full width of the tab button. Now the text "RPC" is shown.

when the name variable changes to some name let's say "my big name" , then though the text of the tab button changes, the underline still has the same width as before for the "RPC" name.

The text within the tab is updating but the tab underline itself is not updating.

@Florian-Schoenherr Florian-Schoenherr added the bug Something isn't working label Mar 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants