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

Toast remain open indefinitely until the user closes it #327

Closed
codeBelt opened this issue Feb 5, 2024 · 3 comments
Closed

Toast remain open indefinitely until the user closes it #327

codeBelt opened this issue Feb 5, 2024 · 3 comments

Comments

@codeBelt
Copy link

codeBelt commented Feb 5, 2024

Describe the feature / bug 📝:

I couldn't find it in the documentation, but is there a way to keep the toast visible indefinitely until the user decides to close it? Perhaps setting the duration to null or introducing a sticky property could provide this functionality to developers.

We have this toast that we want the user to click on and not have it go away:

Screenshot 2024-02-05 at 5 00 38 PM
@binkydog
Copy link

binkydog commented Feb 6, 2024

Looks like Emil went with duration: Infinity to prevent auto closing.

#46

@emilkowalski
Copy link
Owner

Like @binkydog mentioned. duration: Infinity is the way to go here.

@topaxi
Copy link

topaxi commented Apr 2, 2024

Infinity is a bit unfortunate, as JSON does not include it and we triggering/controlling some toasts from certain server responses 😅

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

No branches or pull requests

4 participants