Skip to content

Commit 30d2814

Browse files
committed
fix if toggling to none-matched branch
1 parent 0a34247 commit 30d2814

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/directives/if.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ export const _if = (el: Element, exp: string, ctx: Context) => {
6969
}
7070
}
7171
// no matched branch.
72+
activeBranchIndex = -1
7273
removeActiveBlock()
7374
})
7475

0 commit comments

Comments
 (0)