mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[IMP] qweb/components: remove t-ref on components
Refs to component expose a lot of implementation details that should be private to parents. Parent to child communication should go through props.
This commit is contained in:
committed by
Aaron Bohy
parent
df2d6b6a0e
commit
c03042b44d
@@ -34,7 +34,7 @@ describe("hooks", () => {
|
||||
}
|
||||
increment() {
|
||||
this.value++;
|
||||
(this.button.el as HTMLButtonElement).innerHTML = String(this.value);
|
||||
this.button.el!.innerHTML = String(this.value);
|
||||
}
|
||||
}
|
||||
const mounted = mount(Counter, fixture);
|
||||
|
||||
Reference in New Issue
Block a user