pull/1864/head
Rich Harris 7 years ago
parent cefd06d55a
commit cd805d6003

@ -814,9 +814,9 @@ export default class ElementWrapper extends Wrapper {
} }
remount(name: string) { remount(name: string) {
const slot = this.attributes.find(attribute => attribute.name === 'slot'); const slot = this.attributes.find(attribute => attribute.node.name === 'slot');
if (slot) { if (slot) {
const prop = quotePropIfNecessary(slot.chunks[0].data); const prop = quotePropIfNecessary(slot.node.chunks[0].data);
return `@append(${name}.$$slotted${prop}, ${this.var});`; return `@append(${name}.$$slotted${prop}, ${this.var});`;
} }

Loading…
Cancel
Save