Explorar el Código

fix v-else inserting else block multiple times

Evan You hace 10 años
padre
commit
e9b87a3adf
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/directives/public/if.js

+ 1 - 1
src/directives/public/if.js

@@ -52,7 +52,7 @@ module.exports = {
       this.frag.remove()
       this.frag = null
     }
-    if (this.elseFactory) {
+    if (this.elseFactory && !this.elseFrag) {
       this.elseFrag = this.elseFactory.create(this._host, this._scope, this._frag)
       this.elseFrag.before(this.anchor)
     }