MatTab: selectedTabChange should not fire when the tab is changed programmatically
- Lingua principale
- TypeScript
- Stelle
- 25k
- Fork
- 6.8k
- Merge medio
- 1g 8h
- PR unite (30g)
- 91
Descrizione
There should be a way to differentiate **between a UI and a programmaticcally induced tab change**. As of now, both cause the selectedTabChange: EventEmitter to emit.
My case is pretty simple: I want to display the currently opened Tab in the URL:
somePage?openedTab=1
somePage?openedTab=2
But I also want the corresponding tab to open when a URL pointing to a specific tab is navigated to. **Ideally, the [selectedIndex] input should not cause (selectedTabChange) to fire**.
Does this make sense?
Material 8.2.3, Angular 8.2.11
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia dal comportamento dell'input selectedIndex e dell'EventEmitter selectedTabChange di MatTab descritto nell'issue. Determina come distinguere le modifiche dell'UI da quelle programmatiche, quindi verifica che le modifiche guidate dall'URL non attivino la notifica delle modifiche dell'UI, mentre le modifiche delle schede effettuate dall'utente la attivino ancora.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- angular, typescript
- Ambito
- frontend
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100