Using same Toast multiple times with canAutoClose #1016
Labels
Bug 🐞
Something isn't working
Editor's Choice
Highlight an issue as something that would be great to be solve
The
Toast
has acanAutoClose
prop which works fine the first time, but fails on subsequent uses of theToast
. For example:Toast
appearsToast
thecanAutoClose
prop, so it closes automatically after a few secondsToast
closes, if you press the button again, theToast
should appear again, but it doesn'tNahum's clever work-around to make it work:
This should work without a clever work-around. From Nahum: "I think the Toast is missing the part of reseting its internal state after closing so it can be open again"
The text was updated successfully, but these errors were encountered: