|
@@ -18,7 +18,7 @@ export default function FragmentFactory (vm, el) {
|
|
|
this.vm = vm
|
|
this.vm = vm
|
|
|
var template
|
|
var template
|
|
|
var isString = typeof el === 'string'
|
|
var isString = typeof el === 'string'
|
|
|
- if (isString || isTemplate(el)) {
|
|
|
|
|
|
|
+ if (isString || isTemplate(el) && !el.hasAttribute('v-if')) {
|
|
|
template = parseTemplate(el, true)
|
|
template = parseTemplate(el, true)
|
|
|
} else {
|
|
} else {
|
|
|
template = document.createDocumentFragment()
|
|
template = document.createDocumentFragment()
|