Bug - LogViewer - Doesn't maintain scroll position when wrap text prop changes
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 45/100
- Type d'issue
- Bug
- Clarté
- Plutôt claire
- Activité
- À l'abandon
- Stack technique
- typescript
- Domaine
- frontend
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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
- Langage dominant
- TypeScript
- Étoiles
- 34
- Forks
- 19
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Préparer son environnement
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de patternfly/react-log-viewer
-
Difficulté 3/5 1-2 jours Accessibilité débutants 67/100
patternfly/react-log-viewer#106 ·
-
Difficulté 3/5 1-2 jours Accessibilité débutants 45/100
patternfly/react-log-viewer#101 ·
-
Difficulté 3/5 1-2 jours Accessibilité débutants 25/100
patternfly/react-log-viewer#98 · 1 commentaire ·
-
How to set search text by props?Ouverte
Difficulté 3/5 1-2 jours Accessibilité débutants 25/100
patternfly/react-log-viewer#95 · 2 commentaires ·
-
Difficulté 3/5 1-2 jours Accessibilité débutants 35/100
patternfly/react-log-viewer#91 · 1 commentaire ·
Toutes les issues de patternfly/react-log-viewer
Issues similaires
-
bug
Difficulté 1/5 Moins d'une heure Accessibilité débutants 88/100
StabilityNexus/Fate-EVM-Frontend#153 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
code-yeongyu/oh-my-openagent#9039 ·
Les mainteneurs répondent en général sous 1 jour
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
Tencent/teamai-cli#862 ·
Les mainteneurs répondent en général sous 1 jour
-
bug good first issue hacktoberfest redis
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
libredb/libredb-studio#1164 ·
Les mainteneurs répondent en général sous 1 jour
-
flake
Difficulté 2/5 1-3 heures Accessibilité débutants 85/100
coder/xum#4920 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour