Skip to content

Conditional Tabs #1111

Answered by dvoituron
florianwachs asked this question in Q&A
Dec 13, 2023 · 2 comments · 8 replies
Discussion options

You must be logged in to vote

This seems to come from the web component used by FluentTabs, which keeps an internal reference to the ID used (even if the HTML code is no longer present).
The best thing would be to remove this Id="tab-2" attribute, if that's possible for you. In this case, the component itself generates a random and unique ID.

@if (_showExtra)
{
    <FluentTab>
        <Header>
            Tab 2
        </Header>
        <Content>
            <h1>love</h1>
        </Content>
    </FluentTab>
}

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
6 replies
@florianwachs
Comment options

@dvoituron
Comment options

Answer selected by florianwachs
@vnbaaij
Comment options

@florianwachs
Comment options

@vnbaaij
Comment options

@florianwachs
Comment options

Comment options

You must be logged in to vote
2 replies
@vnbaaij
Comment options

@pmi24
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants