nativescript-community / ui-material-components

Monorepo that contains all of the NativeScript Material Design plugins.
https://nativescript-community.github.io/ui-material-components/
Apache License 2.0
215 stars 80 forks source link

fix(android): active tab not displaying after nav back to page #436

Closed dgmachado closed 1 year ago

dgmachado commented 1 year ago

Android Issue: Active Tab item not displaying after nav back

Reproduce steps:

  1. On app with multiple (overflown) tab items, Switch to the last tab item
  2. Navigate to a new page
  3. Nav back to the page with Tabs
  4. Notice the active last tab item is not showing. The tab strip is showing the most left / initial tab items instead.

Expect: the tab strip to show the last displayed position before navigating to the new page.

Video: https://user-images.githubusercontent.com/5738416/224697030-f659224c-cfc5-4531-8dd6-f10b84a0c1de.mov

farfromrefug commented 1 year ago

@dgmachado seems good could you just add a comment where you do the setTimeout so we understand why the code is there?

farfromrefug commented 1 year ago

@dgmachado awesome thank you !