mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-20 15:01:46 +01:00
fix(Toast): unreachable behind overlays (#2650)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
This commit is contained in:
@@ -101,7 +101,13 @@ const contentEvents = computed(() => {
|
||||
}
|
||||
}
|
||||
|
||||
return {}
|
||||
return {
|
||||
interactOutside: (e: Event) => {
|
||||
if (e.target instanceof Element && e.target.closest('[data-sonner-toaster]')) {
|
||||
return e.preventDefault()
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
const appConfig = useAppConfig()
|
||||
|
||||
@@ -100,7 +100,13 @@ const contentEvents = computed(() => {
|
||||
}
|
||||
}
|
||||
|
||||
return {}
|
||||
return {
|
||||
interactOutside: (e: Event) => {
|
||||
if (e.target instanceof Element && e.target.closest('[data-sonner-toaster]')) {
|
||||
return e.preventDefault()
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
const appConfig = useAppConfig()
|
||||
|
||||
Reference in New Issue
Block a user