mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
allow static and dynamic attributes to combine in qweb
This commit is contained in:
@@ -420,6 +420,12 @@ describe("attributes", () => {
|
||||
const expected = `<div foo="<foo" bar="<bar>" baz="<"<baz>">" qux="<>"></div>`;
|
||||
expect(result).toBe(expected);
|
||||
});
|
||||
|
||||
test("t-att-class and class should combine together", () => {
|
||||
qweb.addTemplate("test", `<div class="hello" t-att-class="value"/>`);
|
||||
const result = renderToString(qweb, "test", { value: "world" });
|
||||
expect(result).toBe(`<div class="hello world"></div>`);
|
||||
});
|
||||
});
|
||||
|
||||
describe("t-call (template calling", () => {
|
||||
|
||||
Reference in New Issue
Block a user