Skip to content

Commit 6f83229

Browse files
author
Damir
committed
Fix hardcoded slot tag name
1 parent 3fe6368 commit 6f83229

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,9 @@ function mergeSlots(tree, node, strict, slotTagName) {
139139

140140
// Retrieve main content, means everything that is not inside slots
141141
if (node.content) {
142-
const contentOutsideSlots = node.content.filter(content => content.tag !== 'slot');
142+
const contentOutsideSlots = node.content.filter(content => content.tag !== slotTagName);
143143
if (contentOutsideSlots.length > 0) {
144-
fillSlots[defaultSlotName] = [{tag: 'slot', attrs: {name: defaultSlotName}, content: [...contentOutsideSlots]}];
144+
fillSlots[defaultSlotName] = [{tag: slotTagName, attrs: {name: defaultSlotName}, content: [...contentOutsideSlots]}];
145145
}
146146
}
147147

0 commit comments

Comments
 (0)