NativeScript / NativeScript/angular
Wrong back navigation after using nested outlets with the TabsComponent
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 55
- Forks
- 13
- Ø Merge
- 16 Min.
- Gemergte PRs (30 T.)
- 1
Beschreibung
Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):
- CLI: 8.6.5
- Cross-platform modules:
- Android Runtime: 8.6.2
- iOS Runtime: -
- Plugin(s): -
- NativeScript-Angular: 16.0.1
- Angular: 16.2.0
Describe the bug
To Reproduce
I have created a demo app to reproduce the issue:
https://github.com/tujlaky/nativescript-tabs-demo
The following navigation steps would break the app:
- Item 1
- Show more
- Press the back arrow in the ActionBar twice
- Open the Browse tab
- Press Go outside button
- Press the back arrow in the ActionBar
- Open the Home tab
- It show Item 1
Expected behavior
It should how the last active view.
Sample project
https://github.com/tujlaky/nativescript-tabs-demo
Additional context
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Starte zunächst die Reproduktions-App unter github.com/tujlaky/nativescript-tabs-demo mit den aufgeführten NativeScript-, Angular- und Android Runtime-Versionen. Folge der gemeldeten Navigationsabfolge und untersuche das Navigationsverhalten von TabsComponent und verschachtelten Outlets. Die Aufgabe ist abgeschlossen, wenn beim Zurückkehren zum Home-Tab die zuletzt aktive Ansicht anstelle von Item 1 angezeigt wird.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- angular, typescript
- Bereich
- mobile-dev
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100