ui
ui copied to clipboard
Drawer is not unmounted when closed
Description
Hello everyone,
I am using a drawer like this:
const onViewDetails = () => {
const drawer = overlay.create(TaskOverlay)
drawer.open({
project: props.project
})
}
Now the problem is that I am using an event bus that is being used inside the onMounted() method:
onMounted(() => {
$listen('task:updated', (taskId: string) => {
console.log("Test")
refresh()
})
})
Now the question is: How can I unmount the drawer if it is closed? Once opened, the refresh event will be triggered, event if the drawer has been closed already.
Any idea how I could handle this?
Possibly solved with https://github.com/nuxt/ui/pull/3829
This should be resolved. We can re-open if its still an issue.