-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Detailed description
Chrome 100.0.4896.60
When toggling visibility on a <Toast /> component, the 2nd time the component shows it's still using the same timer.
I was expecting the timer to reset each time the Toast is no longer active
Possible solution
Maybe just clear the setTimeout each time the Toast is dismissed
Steps to reproduce
Describe the steps to reproduce the behavior:
- Set the
timeoutprop on a Toast component to 6000 - Show, then hide the Toast
- Wait a few seconds
- Show the Toast again, and notice that it's only visible for whatever time remains from the initial 6 seconds
Screenshots
react-toast-timeout.mov
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working