human-essentials icon indicating copy to clipboard operation
human-essentials copied to clipboard

Problem with item dropdowns

Open cielf opened this issue 1 year ago • 4 comments

Summary

When you click add an item, then click on the item you want very quickly, sometimes it reverts to the first item on the list.

Why fix

Bank frustration

Details

You can reproduce this on a new distribution, or anywhere else that has the "add an item" functionality. It appears that if you click too soon (before the list is fully loaded?) the selection is not preserved. On a local, if you have a fairly fast machine, you have to be really quick to reproduce this, but it is happening frequently "in the wild".

Criteria for completion

  • [ ] fix the problem
  • [ ] demonstrate to yourself, at least, that you have fixed it (We'll be manually testing ourselves before merging.)

cielf avatar Jul 21 '24 16:07 cielf

@cielf could you please add the screenshots or screen recording of how to reflect this. I see this doesn't happen a lot, Could you please atleast share a recording how I need to try to reflect this error.

Naraveni avatar Jul 22 '24 00:07 Naraveni

Easy way to reproduce this is using DevTools network throttling @Naraveni @cielf

  1. Go to new distributions page
  2. Pick a storage location
  3. Set network throttling to Slow 3g under Performance tab (help article)
  4. (edited) Click "Add new item", then immediately click on "choose an item" to open the dropdown. Don't select anything yet, wait a second for it to automatically select the first item. After this automatic selection, attempt to select something in the dropdown and notice that the selection is discarded. (If you make a selection before the automatic selection, or if you open the dropdown after the automatic selection, it works fine).

Recording here: screen-capture.webm

jimmyli97 avatar Jul 22 '24 04:07 jimmyli97

Your point 4 seems a bit off to me -- because in real life if I wait a second or to before selecting, it's fine. Looking at your screen capture - is it possible that having opened the dropdown before the auto select is the factor?

cielf avatar Jul 22 '24 17:07 cielf

@cielf yes you have to open the dropdown before the auto select, edited my comment to clarify

jimmyli97 avatar Jul 22 '24 18:07 jimmyli97

This issue is marked as stale due to no activity within 30 days. If no further activity is detected within 7 days, it will be unassigned.

github-actions[bot] avatar Dec 29 '24 00:12 github-actions[bot]

Automatically unassigned after 7 days of inactivity.

github-actions[bot] avatar Jan 06 '25 00:01 github-actions[bot]

still has a PR in review process. Reassigning for the nonce.

cielf avatar Jan 06 '25 00:01 cielf