diff --git a/resources/views/components/notifications/event-toast.blade.php b/resources/views/components/notifications/event-toast.blade.php index 9ea54b8..fb32d4d 100644 --- a/resources/views/components/notifications/event-toast.blade.php +++ b/resources/views/components/notifications/event-toast.blade.php @@ -13,6 +13,10 @@ type: event.detail.type, }; + if (event.detail.scrollToTop) { + window.scrollTo({ top: 0, behavior: 'smooth' }); + } + const delay = event.detail.timeout ?? 4000; if (delay > 0) {