Bug - LogViewer - Doesn't maintain scroll position when wrap text prop changes
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 45/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- typescript
- Ambito
- frontend
Direzione di ricerca
Start with the LogViewer implementation and reproduce the issue in the PatternFly demo at the linked complex-toolbar URL: scroll to a later line, then toggle Wrap Text. Trace the rerender and confirm that the fix preserves the same log location after wrapping changes, then verify the reproduction no longer returns to line 1.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Describe the problem
A clear and concise description of the problem. Which components are affected?
I'm using the log viewer component. When I scroll to a particular line, say line 100 > then toggle the value of wrap text > the component re-renders and I'm taken to line 1.
You can see this behavior in the demo here: https://www.patternfly.org/v4/extensions/log-viewer#with-complex-toolbar
How do you reproduce the problem?
Provide steps to reproduce. A codepen or codesandbox demonstrating the problem is appreciated.
- Go to this demo: https://www.patternfly.org/v4/extensions/log-viewer#with-complex-toolbar
- Scroll to a line, say line 100
- Toggle the value of the
Wrap Textcheckbox - You are taken to line 1
Expected behavior
A clear and concise description of the expected behavior.
Even after toggling the value of wrap text, the scroll position should be the same.
This is important because if the user arrives at a log line much after line 1, say something like 1000, tries to read the log by wrapping the text, and is taken to the 1st line, it will be very cumbersome for the user to find / arrive to the same line again in case they don't remember the line number.
Is this issue blocking you?
List the workaround if there is one.
I couldn't find a workaround.
Screenshots
If applicable, add screenshots to help explain the issue.
What is your environment?
-
OS: Mac OS
-
Browser: Firefox
What is your product and what release date are you targeting?
I'm not sure I'm at liberty to disclose this information.
Any other information?
Jira Issue: PF-2009
- Lingua principale
- TypeScript
- Stelle
- 34
- Fork
- 19
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
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 patternfly/react-log-viewer
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 67/100
patternfly/react-log-viewer#106 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
patternfly/react-log-viewer#101 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 25/100
patternfly/react-log-viewer#98 · 1 commento ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 25/100
patternfly/react-log-viewer#95 · 2 commenti ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
patternfly/react-log-viewer#91 · 1 commento ·
Tutte le issue di patternfly/react-log-viewer
Issue simili
-
resources
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
railmapgen/rmg-palette#2445 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
danielmiessler/LifeOS#2242 ·
I maintainer di solito rispondono entro 5 giorni
-
good first issue hacktoberfest help wanted translation
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
callstackincubator/appduct#129 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 88/100