diff --git a/src/component/directive.ts b/src/component/directive.ts
index 72aae3c3..7d8e7fb7 100644
--- a/src/component/directive.ts
+++ b/src/component/directive.ts
@@ -436,6 +436,7 @@ QWeb.addDirective({
isInSubComponent = true;
break;
}
+ el = el.parentElement;
}
if (isInSubComponent) {
continue;
diff --git a/tests/component/slots.test.ts b/tests/component/slots.test.ts
index ff1950b5..de6b0221 100644
--- a/tests/component/slots.test.ts
+++ b/tests/component/slots.test.ts
@@ -1052,4 +1052,37 @@ describe("t-slot directive", () => {
"
Ablip
default2default1Bblip
"
);
});
+
+ test("named slot inside slot, part 3", async () => {
+ class Child extends Component {
+ static template = xml`
+
+
+
+
`;
+ }
+ class Parent extends Component {
+ static template = xml`
+
+
+
+ A
+
+
+
+
+ B
+
+
+
+
+
`;
+ static components = { Child };
+ value = "blip";
+ }
+ const parent = new Parent();
+ await parent.mount(fixture);
+
+ expect(fixture.innerHTML).toBe("");
+ });
});
diff --git a/tools/release.js b/tools/release.js
index c1a69e75..7681fd61 100644
--- a/tools/release.js
+++ b/tools/release.js
@@ -87,7 +87,7 @@ async function startRelease() {
// ---------------------------------------------------------------------------
- log('Step 7/${STEPS}: Creating the release...');
+ log(`Step 7/${STEPS}: Creating the release...`);
const relaseResult = await execCommand(`gh release create v${next} dist/*.js ${draft} -F release-notes.md`);
if (relaseResult !== 0) {
log("github release failed. Aborting.");