The pauseOnFocusLoss does not work in Chrome and Edge
Do you want to request a feature or report a bug? Bug
What is the current behavior? I've tested on Chrome, Firefox and Edge if the pauseOnFocusLoss property (which is true by default from what I've read) works as expected, but in Chrome and Edge it doesn't stop when the tab where the toast was displayed is changed. On Firefox it worked fine.
The behavior can be replicated with the react-toastify doc site itself.
Same. The progress bar continues to decrease, but the internal timer does seem to pause correctly.
Here's my steps to reproduce it (most of the time):
- Open two tabs to the same URL
- Trigger an alert with 30 second autoClose duration
- Go to the other tab for 10 seconds
- Go back to the initial tab - the progress bar has gone down 10 seconds
- Wait the remaining ~20 seconds, the progress bar reaches 0 but the notification does not disappear
- Wait 10 more seconds, the notification then disappear.
Hey! The code that handle this part hasn't changed for a while. I'll have to go through chromium bug tracker to see if I can find something related to that
@fkhadra what is the status of this?