emilkowalski / sonner

An opinionated toast component for React.

Home Page:https://sonner.emilkowal.ski

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BUG: Dialog flickers when toast opens

bakikucukcakiroglu opened this issue Β· comments

Describe the feature / bug πŸ“:

When submitting a form within a Dialog, the Dialog is closed and a toast is shown using the same function. However, this causes the Dialog to flicker twice. The flicker does not occur when the toast is removed.

Component Library: Shadcn
Framework: Next.js

Hey guys, I solved the problem but not deleting the issue for the ones who may encounter a similar problem in the future. The problem is not related to sonner.

I deleted data-[state=closed]:animate-out from shadcn-ui/dialog and now it works well.