You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@the-pulli thanks for reporting and thanks @jeffchown for checking! I've submitted a PR with a fix.
One small change to Jeff's suggestion though, we need to check if duration is undefined a 0 is a valid duration, which returns false in the conditional.
Flux version
v1.1.2
Livewire version
v3.5.12
What is the problem?
I'm not sure if it's a bug or a feature. The docs state to issue a Toast from JS one can do:
Hence the reason, I wanna also control the duration of the toast, I added:
But this will be ignored. Is this intended? Because the PHP variant with passing a duration works fine.
Code snippets
Working as expected:
Instead of being displayed indefenitely, the duration gets ignored:
How do you expect it to work?
That the duration flag is passed properly to the Toast component in JS.
Please confirm (incomplete submissions will not be addressed)
The text was updated successfully, but these errors were encountered: