Skip to content

Commit

Permalink
Moves to unnamed slot from dataset-slotted
Browse files Browse the repository at this point in the history
  • Loading branch information
kj committed May 28, 2024
1 parent f9ba5fb commit 5cbea29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const MorphdomMixin = (superclass) => class extends superclass {

if (this['expandSlots']) {
const slotEl = document.createElement('div')
const slottedElements = root.querySelectorAll('[data-slotted]')
const slottedElements = root.querySelectorAll('[slot=""]')
for (const value of slottedElements.values()) {
slotEl.appendChild(value)
}
Expand Down

0 comments on commit 5cbea29

Please sign in to comment.