support using object variables in t-esc

This commit is contained in:
Géry Debongnie
2019-03-21 10:47:08 +01:00
parent d799e3dd47
commit a8b3ec7726
3 changed files with 18 additions and 7 deletions
+1 -1
View File
@@ -469,7 +469,7 @@ export class QWeb {
// dynamic attributes
if (name.startsWith("t-att-")) {
let attName = name.slice(6);
let formattedValue = this._formatExpression(ctx.getValue(value!));
let formattedValue = this._formatExpression(ctx.getValue(value!), ctx);
const attID = ctx.generateID();
if (!attName.match(/^[a-zA-Z]+$/)) {
// attribute contains 'non letters' => we want to quote it