onSelect triggered when tab is closed

I noticed this strange behavior.
When i close a tab while the tab is selected the onSelect event is triggered, which is not supposed to happen.
But when i close a tab that is not selected, the onSelect event isn’t triggered and that is the right thing.
Hope it get fixed, if it is a bug.

When you close a tab - another tab comes selected.
I.e. you have 3 tabs: tab1, tab2, tab3. The tab3 is selected.
Case 1: You close tab3 and selection goes to the previous tab tab2. //onSelect fires
Case 2: You close tab2 and selection stands on the tab3. //onSelect doesn’t fire

Thank you.

You are welcome!