Skip to content
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

The page scrolls when you press 'space' on a single select input #1103

Closed
ollietreend opened this issue Feb 3, 2023 · 2 comments
Closed
Labels

Comments

@ollietreend
Copy link

Describe the bug

When a single select input is focussed and the 'space' bar is pressed, the page scrolls down.

To Reproduce
Steps to reproduce the behavior:

  1. Go to the 'Single select input' section of the Choices.js demo
  2. Use Tab key to navigate to & focus a single select input
  3. Press Space key
  4. The selected input scrolls out of view

Expected behavior
The single select input should have opened, without the viewport scrolling and without a Space character being entered into the input's search box. This is standard behaviour for select inputs when navigating with a keyboard.

Screenshots

Choices.space.behaviour.mov

Desktop (please complete the following information):

  • OS: macOS
  • Browser: Chrome
  • Version 109
@ollietreend ollietreend added the bug label Feb 3, 2023
@joffreypersia
Copy link

Up !

@Xon Xon mentioned this issue Aug 22, 2024
9 tasks
@Xon
Copy link
Collaborator

Xon commented Aug 22, 2024

Implemented as part of #1166

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants