scratchfoundation / scratchfoundation/scratch-blocks

Double-clicking on a dropdown menu sometimes selects wrong entry

Open
#1,978 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

needs-triage
Dominant language
JavaScript
Stars
2.8k
Forks
1.6k
Avg merge
4h 51m
Merged PRs (30d)
12

Description

Expected Behavior

If, for some reason, you were to double click on an entry in a dropdown menu, the entry you clicked on should be selected.

Actual Behavior

Sometimes, the animation that moves the dropdown menu up and fades it out, makes it so that the second click in the double click registers on the entry below the one you started with.

It looks like the click handler is not removed when a click is registered, but only when the dropdown has completely closed.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the double-click on a dropdown entry and tracing the dropdown click handler alongside the closing animation. Check when the handler stops accepting clicks; done means the second click in a double-click still selects the originally clicked entry rather than the entry below.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.