select2 / select2/select2

Scrolling with keys, while the mouse pointer hovers over the list

Open
#6,301 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
25.9k
Forks
6.1k
Avg merge
8d 53m
Merged PRs (30d)
4

Description

Reproduction Steps:

  • Go to your documentations site (Getting Started -> Basic Usage)
  • Click with the mouse on the first example (the one unser "and turn it into this...")
  • Hover with the mouse over "Alaska"
  • Press on the keyboard the Arrow-Down-Key 3 times

Actual:

  • "Hawaii" is not selected

Expected:

  • the entry that becomes visible should be activated. (Nevada)

This happens for both directions as long as the element under the mouse pointer is selectable.

Addional Information:
The scrolling works correct on the first drop-down (the plain select-style drop-down), but is also wrong on the 2nd example (the multi-select box).

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

Reproduce the behavior in the documented Basic Usage examples, comparing the plain select-style dropdown with the multi-select box while hovering an option and pressing Arrow-Down. Trace the keyboard scrolling and hover interaction, then verify that the newly visible option is activated in both directions without changing the working first dropdown.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.