Problem with item dropdowns
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 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.
Easy way to reproduce this is using DevTools network throttling @Naraveni @cielf
- Go to new distributions page
- Pick a storage location
- Set network throttling to Slow 3g under Performance tab (help article)
- (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
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 yes you have to open the dropdown before the auto select, edited my comment to clarify
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.
Automatically unassigned after 7 days of inactivity.
still has a PR in review process. Reassigning for the nonce.