nextui
nextui copied to clipboard
[BUG] - Toast still animates with `disableAnimation` on
HeroUI Version
2.8.4
Describe the bug
Hello,
I guess disableAnimation should make toasts disappear immediately if close is invoked.
Actually, there's 300ms timeout before toast is closed regardless of external context
Your Example Website or App
No response
Steps to Reproduce the Bug or Issue
- Use
disableAnimationinHeroUIProvider - Open toast
- Close toast programatically
Expected behavior
Toast disappears immediately
Screenshots or Videos
No response
Operating System Version
Browser
Chrome
I’d like to work on this issue. Could you please assign it to me?
I’ve already forked the repo and started exploring the toast logic. #5804 I’ll submit a PR soon once I verify that disableAnimation properly skips the closing delay.