Skip to content

Commit 98f49d7

Browse files
committed
fix vento components that override the content/children property
1 parent f257f86 commit 98f49d7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Go to the `v1` branch to see the changelog of Lume 1.
1111
- Append search to redirect in `/core/server.ts` if path matches directory [#796].
1212
- Import `esbuild` dependency from `npm` to avoid permissions issues [#795].
1313
- Updated dependencies: `deno-loader`, `sass`, `xml`, `unocss` and icons.
14+
- Vento components shouldn't inherit the page's data [#797].
1415

1516
## [3.1.2] - 2025-11-18
1617
### Added
@@ -333,6 +334,7 @@ Go to the `v1` branch to see the changelog of Lume 1.
333334
[#789]: https://github.com/lumeland/lume/issues/789
334335
[#795]: https://github.com/lumeland/lume/issues/795
335336
[#796]: https://github.com/lumeland/lume/issues/796
337+
[#797]: https://github.com/lumeland/lume/issues/797
336338

337339
[3.1.3]: https://github.com/lumeland/lume/compare/v3.1.2...HEAD
338340
[3.1.2]: https://github.com/lumeland/lume/compare/v3.1.1...v3.1.2

plugins/vento.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,14 +249,13 @@ function compTag(
249249
}
250250

251251
const compiledFilters = env.compileFilters(tokens, "__slots.content");
252-
const { dataVarname } = env.options;
252+
253253
return `${output} += (await (async () => {
254254
const __slots = { content: "" };
255255
${env.compileTokens(tokens, "__slots.content", "/comp").join("\n")}
256256
__slots.content = __env.utils.safeString(${compiledFilters});
257257
258258
return await comp.${comp}({
259-
...${dataVarname},
260259
...__slots,
261260
...${args || "{}"}
262261
});

0 commit comments

Comments
 (0)