mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
support using object variables in t-esc
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user