Growl's onClose event references wrong message when message is closed manually #2846
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
I'm submitting a ... (check one with "x")
Plunkr Case (Bug Reports)
http://plnkr.co/edit/0LOFUtsI2HU5ltoBozsh?p=preview
Current behavior
When the user manually closes a Growl message, the onClose callback receives an object containing the next message in the messages array instead of the message that was actually closed. Say we remove the second message on the array then the event is called with the third one. This does not happen when the message is automatically removed by the component.
Expected behavior
The callback should receive the exact message removed.
Minimal reproduction of the problem with instructions
(It should log the four message in the correct order but instead it will log messages 2, 3, 4 and then undefined.)
What is the motivation / use case for changing the behavior?
It seems like unintended behaviour
Please tell us about your environment:
The text was updated successfully, but these errors were encountered: