Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only start the countdown timer if the page is visible #110

Open
DieterHolvoet opened this issue Oct 19, 2022 · 0 comments · May be fixed by #112
Open

Only start the countdown timer if the page is visible #110

DieterHolvoet opened this issue Oct 19, 2022 · 0 comments · May be fixed by #112

Comments

@DieterHolvoet
Copy link

Actual behaviour

I'm using this library with the Drupal module. This module shows messages e.g. after saving a page. It happens often that I save the page and while waiting for the new page to load, I navigate to another tab. Once I come back to the previous tab where the toast appeared, I notice that the toast has already disappeared.

Expected behaviour

Only start the countdown timer if the tab where the toast appears is open. This way, no messages can be missed. Could be made an option instead of the default behaviour.

@DieterHolvoet DieterHolvoet linked a pull request Dec 21, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant