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 onClose callback now works as documented! It is called whenever a toast is removed (by timeout, close button, or programmatically) in both butterpop.js and butterpop.esm.js.
🐛 Bug Fixes & Changes
[Behavioral Change] The onClose callback is now properly called when a toast is removed. The callback receives the toast DOM element as its argument. This brings the implementation in line with the documentation and expected behavior.