mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[FIX] qweb, component: remove support for t-on on component node
This commit is contained in:
committed by
Aaron Bohy
parent
1296964ae2
commit
3eb63452e7
@@ -432,14 +432,17 @@ describe("Portal", () => {
|
||||
expect(parent.env).toStrictEqual({});
|
||||
});
|
||||
|
||||
test("Portal composed with t-slot", async () => {
|
||||
test.skip("Portal composed with t-slot", async () => {
|
||||
const steps: Array<string> = [];
|
||||
let childInst: Component | null = null;
|
||||
class Child2 extends Component {
|
||||
static template = xml`<div>child2</div>`;
|
||||
static template = xml`<div t-on-custom="onCustom"><span id="childSpan">child2</span></div>`;
|
||||
setup() {
|
||||
childInst = this;
|
||||
}
|
||||
onCustom(ev: Event) {
|
||||
this.props.customHandler(ev);
|
||||
}
|
||||
}
|
||||
class Child extends Component {
|
||||
static components = { Portal, Child2 };
|
||||
@@ -453,7 +456,7 @@ describe("Portal", () => {
|
||||
static template = xml`
|
||||
<div>
|
||||
<Child>
|
||||
<Child2 t-on-custom="_handled"/>
|
||||
<Child2 customHandler="_handled"/>
|
||||
</Child>
|
||||
</div>`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user