Hi @Verônica Batista de Oliveira ,
I just tried this out, and when you are opening another one, causing the earlier one to close, both toggle events fire, so the event about the new one opening is available.
Maybe you did a quick test with a message node in your toggle event, and in that case you will only see the last one of the 2 events, which is the toggle event of the one closing, the other message is so short you never see it, i guess.
Tip : if you want to see this yourself, use a console.log instead of a message, and you'll see both events happening. Can't share oml here on ideas section.
see this picture, i opened item 1 , then item 3, which closed 1 as a consequence. You see in console that all events happen, but only message from last event is visible.

Dorine