Skip to content

List scrolls weirdly while editing it #2506

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
richardolsson opened this issue Jan 30, 2025 · 3 comments
Open

List scrolls weirdly while editing it #2506

richardolsson opened this issue Jan 30, 2025 · 3 comments
Assignees
Labels
🐜 bug Something isn't working 🚪 entry-level Good for newcomers 🐬 Medium Just a nice sized issue.

Comments

@richardolsson
Copy link
Member

Description

The Zetkin "Lists" feature displays information about a static or dynamic list of people. Most columns just display data, but some can be edited by the user. When that happens in a list that has been scrolled quite far down, it somehow redraws and jumps around a little bit.

Steps to reproduce

  1. Go to https://app.dev.zetkin.org/organize/1/people
  2. Create a new list
  3. Click "Configure" under "Configure Smart Search list"
  4. In the Smart Search dialog click the pencil next to "Start with an empty list"
  5. Change it to "Start with a list of all the people in the organization"
  6. Click "Save selection"
  7. Click "Save" (this will populate the list)
  8. Click "Nww columns"
  9. Under the "Toggle" option, click "Add"
  10. Scroll half-way or so down the list
  11. Click the checkbox in the toggle column on one of the rows (around the center)

Expected Behaviour

The checkbox should be selected and the cell should go green. Nothing else should happen.

Actual Behaviour

The checkboxes is selected and the cell turns green, but the list also jumps 1-2 rows up or down.

Screenshots (if you have any)

Image

@richardolsson richardolsson added 🐜 bug Something isn't working 🐬 Medium Just a nice sized issue. 🚪 entry-level Good for newcomers labels Jan 30, 2025
@MattettaM
Copy link
Collaborator

Trying my hand at this

@MattettaM MattettaM self-assigned this Mar 1, 2025
@MattettaM
Copy link
Collaborator

This is probably beyond me.
It seems to be happening randomly if you scroll fast down a list. Using the scrollbar doesn't seem to trigger it.
I was testing using the Select Row checkbox which also causes the issue, so it seems likely that it is something related to the checkbox itself. Every other click jumps the list up and every other jumps it down. It is independent on if the box gets selected or deselected. Editing the Notes field does not trigger this issue, but interestingly stops it from happening even when it previously was triggered.

@MattettaM MattettaM removed their assignment Mar 1, 2025
@awarn awarn self-assigned this Apr 12, 2025
@awarn
Copy link
Collaborator

awarn commented Apr 12, 2025

Having a go at this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐜 bug Something isn't working 🚪 entry-level Good for newcomers 🐬 Medium Just a nice sized issue.
Projects
None yet
Development

No branches or pull requests

3 participants