How to highlight the selected tab in sap.m.IconTabBar?
<p>Dear SAPUI5 developers,</p>

<p>I have a <code>sap.m.IconTabBar</code> and I set the active tab by the code when the user switch between pages. I used the following code:</p>

<pre><code>  sap.ui.getCore().byId(this.createId("iconTabBar")).setSelectedKey("1");
</code></pre>

<p>The problem is that it switch the selected tab correctly to the first tab. But it does not show the blue line under the tab that shows it is selected.</p>

<p>Please look at the following images:</p>

<p>What shows when I select the first tab by code:</p>

<p><a href="https://i.stack.imgur.com/5ausm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5ausm.png" alt="enter image description here"></a></p>

<p>But what it shows when I press the tab by the mouse it shows a blue line under the icon like the following:</p>

<p><a href="https://i.stack.imgur.com/1cmus.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1cmus.png" alt="enter image description here"></a></p>