Skip to content

Commit

Permalink
Fix Slot not removing contents if the transaction is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
ChiriVulpes committed Jan 8, 2025
1 parent fe323d9 commit b32f1c0
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/ui/component/core/Slot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ const Slot = Object.assign(

const component = Component()
const transaction = ComponentInsertionTransaction(component, () => {
if (!transaction.size)
return

slot.removeContents()
slot.append(...component.element.children)
})
Expand Down

0 comments on commit b32f1c0

Please sign in to comment.