-
-
Notifications
You must be signed in to change notification settings - Fork 50
Setting duration does not work as it should #89
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
Comments
Thanks for the report - it's a drawback of the current implementation. What is your expectation though? Does the second statement cause the progress bar to reset (move from 1 to 0) in 3s? |
The expectation was changing of the duration :) Current (and correct) version is: const id = toast.push('message', {dismissable: false, initial: 0, next: 0, duration: 3000});
toast.set(id, {msg: 'another', dismissable: true, next: 1}); But the bug is still there, so I decided to report it. |
Currently |
Are there any plans for this to be fixed / added soon? It has been a while since this issue was opened. |
Yes, cutting a |
Hello. The code above must change the durations of the toast, but it does not.
As a "fix" - you can hover the toast and the duration will change after and only after the hovering.
Svelte. The latest version.
The text was updated successfully, but these errors were encountered: