Skip to content

[combobox] behavior of Home and End keys causes scrolling #1463

@snowystinger

Description

@snowystinger

🐛 Bug Report

Started from a conversation here: #1436
While focused in a combobox with the popup closed, such as hitting Esc to close it, if the Home or End key is pressed and the container or page can scroll in that direction, it will do that. On the second press of that button, the text selection will move, causing the page to scroll back to the combobox.

🤔 Expected Behavior

The page should not scroll, the cursor should just move.

😯 Current Behavior

💁 Possible Solution

preventDefault on those keys, we may need to manually move selection

🔦 Context

💻 Code Sample

🌍 Your Environment

Software Version(s)
react-spectrum
Browser
Operating System

🧢 Your Company/Team

🕷 Tracking Issue (optional)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions