Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Why is selecting tab not working ? #4666


User avatar
0
manojreddy created

I'm trying to select Tab2 by default, But it's not working correctly, It's selecting both tabs. I can see Hello and World on screen.

<p-tabView>
    <p-tabPanel header="Tab1">
        Hello
    </p-tabPanel>
    <p-tabPanel header="Tab2" [selected]="true">
        World
    </p-tabPanel>
</p-tabView>

I'm using primeng version 4.1.2.

Reference: <a class="postlink" href="https://www.primefaces.org/primeng/#/tabview">https://www.primefaces.org/primeng/#/tabview</a>


3 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    @ManojReddy there might be a bug in PrimeNG. Have you tried to upgrade it ?

  • User Avatar
    0
    manojreddy created

    Solved the issue, posting SO link so that it can help others.

    [https://stackoverflow.com/a/48749913/6527049])

  • User Avatar
    0
    alper created
    Support Team

    thanks for feedback!