[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:
Samuel Degueldre
2021-11-10 08:18:25 +01:00
committed by Aaron Bohy
parent df2d6b6a0e
commit c03042b44d
8 changed files with 73 additions and 142 deletions
+1 -1
View File
@@ -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);