diff --git a/src/compiler/parser/index.js b/src/compiler/parser/index.js index 4debf62a1f4..45d4b4b37f3 100644 --- a/src/compiler/parser/index.js +++ b/src/compiler/parser/index.js @@ -895,9 +895,8 @@ function processAttrs (el) { function checkInFor (el: ASTElement): boolean { let parent = el while (parent) { - if (parent.for !== undefined) { - return true - } + if (parent.attrsMap['inline-template'] != null) return false; + if (parent.for !== undefined) return true; parent = parent.parent } return false