Skip to content

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

Open
@DieterHolvoet

Description

@DieterHolvoet

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions