mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-26 01:40: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 {
|
return {}
|
||||||
interactOutside: (e: Event) => {
|
|
||||||
if (e.target instanceof Element && e.target.closest('[data-sonner-toaster]')) {
|
|
||||||
return e.preventDefault()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
|
|
||||||
const ui = computed(() => modal({
|
const ui = computed(() => modal({
|
||||||
|
|||||||
@@ -103,13 +103,7 @@ const contentEvents = computed(() => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {}
|
||||||
interactOutside: (e: Event) => {
|
|
||||||
if (e.target instanceof Element && e.target.closest('[data-sonner-toaster]')) {
|
|
||||||
return e.preventDefault()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
|
|
||||||
const ui = computed(() => slideover({
|
const ui = computed(() => slideover({
|
||||||
|
|||||||
Reference in New Issue
Block a user