BUG: Dialog flickers when toast opens
bakikucukcakiroglu opened this issue Β· comments
Hasan Baki Kucukcakiroglu commented
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
Hasan Baki Kucukcakiroglu commented
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.