Skip to content
This repository was archived by the owner on Mar 17, 2026. It is now read-only.
This repository was archived by the owner on Mar 17, 2026. It is now read-only.

Toast hidden when called programatically #44

@ghost

Description

Whenever I call my toast from a function it's somehow not displayed, DOM also does not change. You can hear the sound though.

Only when it's called a second time it shows.

	function showToast(type, title, message) {
		toasty[type]({
			title: title,
			msg: message
		});
	}

	function checkExpired() {
		showToast("warning", "Warning", "Your session is about to expire. Click here to stay logged in!");
	}

setInterval(checkExpired, 5000);

When I call it from the ng-click directive in the view it works fine every time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions