Dynamic TabView doesn't appear to be working

UI Components for Vue
Post Reply
delaney
Posts: 1
Joined: 18 Nov 2020, 17:30

18 Nov 2020, 17:36

Trying out PrimeVue and overall loving it!

Ran into an odd situation where TabView panels work fine until I data drive them. Example uses pug but hopefully its clear.

Code: Select all

TabView
        TabPanel(header='Foo')
          p Foo
        TabPanel(header='Bar')
          p Bar
works fine.

Code: Select all

TabView
        TabPanel(v-for='(m, i) in markets', :key='i', :header='m.label')
          p {{ m.markets }}
does not.

However if I just use normal divs the contents shows up as expected

Code: Select all

      div(v-for='(m, i) in markets', :key='i')
        p {{ m.label }}
        p {{ m.markets }}
. Not sure why this would be an issue.

Post Reply

Return to “PrimeVue”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest