[FIX] qweb: allow t-if with t-call directives

closes #246
This commit is contained in:
Géry Debongnie
2019-07-16 13:17:51 +02:00
parent 5382e824b1
commit b1d022b583
3 changed files with 27 additions and 0 deletions
+4
View File
@@ -228,6 +228,10 @@ QWeb.addDirective({
ctx.addLine("}");
}
if (node.hasAttribute("t-if") || node.hasAttribute("t-else") || node.hasAttribute("t-elif")) {
ctx.closeIf();
}
return true;
}
});