The documentation says "The TabBar class displays an identical set of tabs. One tab can be selected at a time, and the first tab is selected by default."
Problem: Setting tabBar.selectedIndex = -1 does not achieve the effect of deselecting the default selection . .
Solution: set tabBar.requireSelection = false;