NativeScript / NativeScript/angular
Wrong back navigation after using nested outlets with the TabsComponent
Nessuno ha ancora preso questa issue.
- Lingua principale
- TypeScript
- Stelle
- 55
- Fork
- 13
- Merge medio
- 16m
- PR unite (30g)
- 1
Descrizione
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
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia eseguendo l’app di riproduzione su github.com/tujlaky/nativescript-tabs-demo con le versioni indicate di NativeScript, Angular e Android Runtime. Segui la sequenza di navigazione segnalata e analizza il comportamento di navigazione di TabsComponent e degli outlet annidati. Il lavoro è completato quando, tornando alla scheda Home, viene mostrata l’ultima vista attiva invece di Item 1.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- angular, typescript
- Ambito
- mobile-dev
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100