[FIX] qweb/component: make widgets work with t-else=""

closes #37
This commit is contained in:
Géry Debongnie
2019-04-16 14:17:02 +02:00
parent 7974ce4963
commit 6640644d34
2 changed files with 24 additions and 1 deletions
+1 -1
View File
@@ -1091,7 +1091,7 @@ const widgetDirective: Directive = {
ctx.addLine(`extra.promises.push(def${defID});`);
if (node.getAttribute("t-if") || node.getAttribute("t-else")) {
if (node.hasAttribute("t-if") || node.hasAttribute("t-else")) {
ctx.closeIf();
}