Page 1 of 1

Dynamic TabView doesn't appear to be working

Posted: 18 Nov 2020, 17:36
by delaney
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.