-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Description
Environment
tns-core-modules: 6.2.0-rc-2019-10-25-193201-01
Describe the bug
When use tabs and minimised the app (open some other app) the highlighter(the line under the icon and tab text) of the selected tab is changed. It seems like the first tab was the selected one.
Note: The content of the tab is not changed, only the highlighter.
To Reproduce
- Create app that use Tabs
- Select one of the tabs except the first one that is the default selected
- Minimise the app e.g. open another app
- Go back to your app with the Tabs
<StackLayout>
<Tabs height="400px">
<TabStrip>
<TabStripItem>
<Label text="Home"></Label>
<Image src="res://home"></Image>
</TabStripItem>
<TabStripItem>
<Label text="Settings"></Label>
<Image src="res://settings"></Image>
</TabStripItem>
<TabStripItem>
<Label text="Search"></Label>
<Image src="res://search"></Image>
</TabStripItem>
</TabStrip>
<TabContentItem>
<GridLayout>
<Label text="Home Page" class="h2 text-center">
</Label>
</GridLayout>
</TabContentItem>
<TabContentItem>
<GridLayout>
<Label text="Settings Page"
class="h2 text-center">
</Label>
</GridLayout>
</TabContentItem>
<TabContentItem>
<GridLayout>
<Label text="Search Page" class="h2 text-center">
</Label>
</GridLayout>
</TabContentItem>
</Tabs>
</StackLayout>
Expected behavior
The selected tab to be saved when the app is minimised
Sample project
Additional context