mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
chore(Modal/Slideover): remove unnecessary code to handle toasts
This commit is contained in:
@@ -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({
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user