We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a01701 commit b392e5eCopy full SHA for b392e5e
src/DocumentComponent.ts
@@ -33,7 +33,7 @@ export class DocumentComponent extends NodeComponent<DocumentFragment> {
33
const nodes: NodeComponent<any>[] = [];
34
const doc = new DocumentComponent(strings.reduce((acc, str, index) => {
35
if (index >= components.length) return acc + str;
36
- const component = components[index - 1];
+ const component = components[index];
37
if (component instanceof NodeComponent) {
38
nodes.push(component);
39
return `${acc}${str}<slot name="${idPrefix}${nodes.length - 1}"></slot>`;
0 commit comments