Skip to content

Commit dcf9ef0

Browse files
committed
nest
1 parent b1ae62f commit dcf9ef0

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
import { Component } from "@odoo/owl";
22

3+
export class NestHack extends Component {
4+
static template = "html_builder.NestHack";
5+
static props = {
6+
slots: Object,
7+
};
8+
}
9+
310
export class DelayHack extends Component {
411
static template = "html_builder.DelayHack";
512
static props = {
613
slots: Object,
714
count: Number,
815
};
9-
static components = { DelayHack };
16+
static components = { DelayHack, NestHack };
1017
}

addons/html_builder/static/src/core/delay_hack.xml

+7-1
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,17 @@
33

44
<t t-name="html_builder.DelayHack">
55
<t t-if="props.count">
6-
<DelayHack count="props.count - 1" slots="props.slots"/>
6+
<NestHack>
7+
<DelayHack count="props.count - 1" slots="props.slots"/>
8+
</NestHack>
79
</t>
810
<t t-else="">
911
<t t-slot="default"/>
1012
</t>
1113
</t>
1214

15+
<t t-name="html_builder.NestHack">
16+
<t t-slot="default"/>
17+
</t>
18+
1319
</templates>

0 commit comments

Comments
 (0)