Popup event onShow not working

I am trying to trigger an event after the popup element is shown but I can’t make it work. Am I doing something wrong?

Here is the snippet, the onAfterLoad event is triggered but not the onShow

https://webix.com/snippet/2875c5a9

you defined event in body config instead of window config
https://webix.com/snippet/1944f96e

Thank you, this was driving me crazy!