mirror of
https://gitee.com/vuejs/vue.git
synced 2024-12-04 04:57:40 +08:00
Added the missing break (#3021)
Break in loop when condition is fulfilled.
This commit is contained in:
parent
03e0dab1f4
commit
c4c3ebdd96
@ -8,6 +8,7 @@ export default function ref (el: ASTElement, dir: ASTDirective) {
|
||||
while (parent) {
|
||||
if (parent.for !== undefined) {
|
||||
el.refInFor = true
|
||||
break
|
||||
}
|
||||
parent = parent.parent
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user