[MDL bug for info] Cannot dynamically add Tabs
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 20/100
- Tipo di issue
- Bug
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- javascript
- Ambito
- frontend
Direzione di ricerca
Inizia leggendo l’issue #1165 collegata di Material Design Lite e riproducendo il comportamento descritto con schede aggiunte dopo il rendering iniziale. Confronta le soluzioni alternative disponibili con questa integrazione di Preact MDL; l’issue non definisce una correzione specifica né un test di completamento.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
This is for information for anyone else pulling their hair out - there's a fundamental flaw in the implementation of the tabs in MDL that you will hit in any dynamic frontend library.
https://github.com/google/material-design-lite/issues/1165
Due to the way that the elements used for the tabs (and panels) are found and decorated, any tabs added to a tab set after an initial render won't get the JS listeners invoked. I've found that the first tab in the set gets a second listener instead of the second tab getting it.
There's workarounds in the linked issue - I'm trying to find the best one for my use case at the moment.
- Lingua principale
- JavaScript
- Stelle
- 192
- Fork
- 20
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
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.
Altre issue di developit/preact-mdl
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 42/100
developit/preact-mdl#52 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 35/100
developit/preact-mdl#51 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 38/100
developit/preact-mdl#49 · 1 commento · 1 reazione ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
developit/preact-mdl#40 · 2 commenti ·
-
Chips Component Missing Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
developit/preact-mdl#28 · 1 commento · 1 reazione ·
Tutte le issue di developit/preact-mdl
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
mksglu/context-mode#1200 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
neondatabase/website#5944 ·
-
module: core
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
bigbluebutton/bigbluebutton#25849 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
jaegertracing/jaeger-ui#4506 ·