Permalink
Browse files

fix(tabs): lazy prop regression (#1372)

Closes issue #1371
  • Loading branch information...
tmorehouse committed Nov 20, 2017
1 parent a08a46e commit 844cd81c42edceba48a403d43f50dad875750d3c
Showing with 19 additions and 16 deletions.
  1. +19 −16 src/components/tabs/tab.js
@@ -4,22 +4,25 @@ export default {
mixins: [idMixin],
render (h) {
const t = this
const content = h(
t.tag,
{
ref: 'panel',
class: t.tabClasses,
directives: [ { name: 'show', value: t.localActive } ],
attrs: {
role: 'tabpanel',
id: t.safeId(),
'aria-hidden': t.localActive ? 'false' : 'true',
'aria-expanded': t.localActive ? 'true' : 'false',
'aria-lablelledby': t.controlledBy || null
}
},
[ t.$slots.default ]
)
let content = h(false)
if (t.localActive || !this.computedLazy) {
content = h(
t.tag,
{
ref: 'panel',
class: t.tabClasses,
directives: [ { name: 'show', value: t.localActive } ],
attrs: {
role: 'tabpanel',
id: t.safeId(),
'aria-hidden': t.localActive ? 'false' : 'true',
'aria-expanded': t.localActive ? 'true' : 'false',
'aria-lablelledby': t.controlledBy || null
}
},
[ t.$slots.default ]
)
}
return h(
'transition',
{

0 comments on commit 844cd81

Please sign in to comment.