Skip to content

Commit e9b87a3

Browse files
committed
fix v-else inserting else block multiple times
1 parent 98a288f commit e9b87a3

File tree

1 file changed

+1
-1
lines changed
  • src/directives/public

1 file changed

+1
-1
lines changed

src/directives/public/if.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ module.exports = {
5252
this.frag.remove()
5353
this.frag = null
5454
}
55-
if (this.elseFactory) {
55+
if (this.elseFactory && !this.elseFrag) {
5656
this.elseFrag = this.elseFactory.create(this._host, this._scope, this._frag)
5757
this.elseFrag.before(this.anchor)
5858
}

0 commit comments

Comments
 (0)