Title: TabStripItem not respecting selectedIndex set on Tabs · Issue #8327 · NativeScript/NativeScript · GitHub
Open Graph Title: TabStripItem not respecting selectedIndex set on Tabs · Issue #8327 · NativeScript/NativeScript
X Title: TabStripItem not respecting selectedIndex set on Tabs · Issue #8327 · NativeScript/NativeScript
Description: Environment CLI: 6.3.3 Cross-platform modules: 6.3.0 Android Runtime: 6.3.1 iOS Runtime: 6.3.0 Plugin(s): None Describe the bug When setting a selectedIndex on the Tabs tag as per https://docs.nativescript.org/ui/components/tabs, it is o...
Open Graph Description: Environment CLI: 6.3.3 Cross-platform modules: 6.3.0 Android Runtime: 6.3.1 iOS Runtime: 6.3.0 Plugin(s): None Describe the bug When setting a selectedIndex on the Tabs tag as per https://docs.nati...
X Description: Environment CLI: 6.3.3 Cross-platform modules: 6.3.0 Android Runtime: 6.3.1 iOS Runtime: 6.3.0 Plugin(s): None Describe the bug When setting a selectedIndex on the Tabs tag as per https://docs.nati...
Opengraph URL: https://github.com/NativeScript/NativeScript/issues/8327
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"TabStripItem not respecting selectedIndex set on Tabs","articleBody":"**Environment**\r\n - CLI: 6.3.3\r\n - Cross-platform modules: 6.3.0\r\n - Android Runtime: 6.3.1\r\n - iOS Runtime: 6.3.0\r\n - Plugin(s): None\r\n\r\n**Describe the bug**\r\nWhen setting a `selectedIndex` on the `Tabs` tag as per [https://docs.nativescript.org/ui/components/tabs](https://docs.nativescript.org/ui/components/tabs), it is only respected by the `TabContentItem` and not the `TabStrip` and `TabStripItem` - these default to the first item.\r\n\r\nAlso, when returning to the page containing the `Tabs` using goBack, the `TabContentItem` is correct, but again the `TabStripItem` is not set - this would appear to be related.\r\n\r\n**To Reproduce**\r\nRun a simple tabs example and set the selectedIndex\r\n\r\n**Expected behavior**\r\nThe `TabStripItem` and `TabContentItem` should respect the `selectedIndex`\r\n\r\n","author":{"url":"https://github.com/tonyhogben","@type":"Person","name":"tonyhogben"},"datePublished":"2020-02-10T14:42:10.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/8327/NativeScript/issues/8327"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c2db74b2-0af0-1660-8197-877b2e0dfd9b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 870C:3CECC8:2379707:2F59882:697415CC |
| html-safe-nonce | 408bea8692b4cd9cd009a6694bd306f07296edc7ce4a3656b3f2309a9f209430 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NzBDOjNDRUNDODoyMzc5NzA3OjJGNTk4ODI6Njk3NDE1Q0MiLCJ2aXNpdG9yX2lkIjoiNTk4Njc1MjA1NTIxNTM5NjMwMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 744f732e66f22c255b711143efdd6643f4a9aad104712bc006c8c589cd64282c |
| hovercard-subject-tag | issue:562606442 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NativeScript/NativeScript/8327/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1c368d81578b0395a0d41e37fa323e3a36abe46ccb98a56c8b7e4dbb59e5a8d7/NativeScript/NativeScript/issues/8327 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1c368d81578b0395a0d41e37fa323e3a36abe46ccb98a56c8b7e4dbb59e5a8d7/NativeScript/NativeScript/issues/8327 |
| og:image:alt | Environment CLI: 6.3.3 Cross-platform modules: 6.3.0 Android Runtime: 6.3.1 iOS Runtime: 6.3.0 Plugin(s): None Describe the bug When setting a selectedIndex on the Tabs tag as per https://docs.nati... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tonyhogben |
| hostname | github.com |
| expected-hostname | github.com |
| None | 447dc9917c3d68d647a01abfdefe55ec7ee1785922136c1d8395dbb3ab6d57b9 |
| turbo-cache-control | no-preview |
| go-import | github.com/NativeScript/NativeScript git https://github.com/NativeScript/NativeScript.git |
| octolytics-dimension-user_id | 7392261 |
| octolytics-dimension-user_login | NativeScript |
| octolytics-dimension-repository_id | 31492490 |
| octolytics-dimension-repository_nwo | NativeScript/NativeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 31492490 |
| octolytics-dimension-repository_network_root_nwo | NativeScript/NativeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8dad7bdfecbe3eaa97ac4e632d6b47e2b23e81d9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width