chore(Modal/Slideover): remove unnecessary code to handle toasts

This commit is contained in:
Benjamin Canac
2024-12-16 12:57:22 +01:00
parent 0285bf33fa
commit fdaff6630f
2 changed files with 2 additions and 14 deletions

View File

@@ -104,13 +104,7 @@ const contentEvents = computed(() => {
}
}
return {
interactOutside: (e: Event) => {
if (e.target instanceof Element && e.target.closest('[data-sonner-toaster]')) {
return e.preventDefault()
}
}
}
return {}
})
const ui = computed(() => modal({

View File

@@ -103,13 +103,7 @@ const contentEvents = computed(() => {
}
}
return {
interactOutside: (e: Event) => {
if (e.target instanceof Element && e.target.closest('[data-sonner-toaster]')) {
return e.preventDefault()
}
}
}
return {}
})
const ui = computed(() => slideover({