the event now fires before the switch and throws an exception because its interacting with the card that gets removed during the animation. So the oldCard can't be removed until the animation is complete.

We really need an afteractiveitemswitch event to do the oldCard removal

Just throwing in my 2 cents. I'm also experiencing this issue. I'm temporarily getting around it by removing the panel after a short timeout. It's ugly, so hopefully there will be a better way to do this in the future:

The default order of event listeners is now 'after' instead of 'before', which means all listener callbacks by default will now be invoked after the actions have been taken. Therefore, in the case of 'activeitemchange' event, the listeners will now be called at the end of animation, and you can safely destroy the 'oldItem'.