[FIX] component: make t-widget work with t-elif

closes #97
This commit is contained in:
Géry Debongnie
2019-05-10 19:35:58 +02:00
parent 1760d0d336
commit 53911de00a
2 changed files with 29 additions and 1 deletions
+5 -1
View File
@@ -314,7 +314,11 @@ QWeb.addDirective({
ctx.addLine(`extra.promises.push(def${defID});`);
if (node.hasAttribute("t-if") || node.hasAttribute("t-else")) {
if (
node.hasAttribute("t-if") ||
node.hasAttribute("t-else") ||
node.hasAttribute("t-elif")
) {
ctx.closeIf();
}