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

Prevent document from scrolling in customizable select popover #49104

Merged
merged 1 commit into from
Nov 11, 2024

Conversation

chromium-wpt-export-bot
Copy link
Collaborator

Pressing up or down on the first or last option of a customizable select
should not let the document scroll. This was happening because the
default event handler of the option was not handling the default if
there was no option to focus in this keyboard event handler, but by
setting the default as handled anyway this bug goes away. This was
identified here:
openui/open-ui#1087 (comment)

Change-Id: I56ab094f468df1ef4847011763e20ea7e759d3f0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6006515
Commit-Queue: Joey Arhar <jarhar@chromium.org>
Reviewed-by: Traian Captan <tcaptan@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1381284}

Pressing up or down on the first or last option of a customizable select
should not let the document scroll. This was happening because the
default event handler of the option was not handling the default if
there was no option to focus in this keyboard event handler, but by
setting the default as handled anyway this bug goes away. This was
identified here:
openui/open-ui#1087 (comment)

Change-Id: I56ab094f468df1ef4847011763e20ea7e759d3f0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6006515
Commit-Queue: Joey Arhar <jarhar@chromium.org>
Reviewed-by: Traian Captan <tcaptan@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1381284}
Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Chromium project.

@chromium-wpt-export-bot chromium-wpt-export-bot merged commit f9488ce into master Nov 11, 2024
22 checks passed
@chromium-wpt-export-bot chromium-wpt-export-bot deleted the chromium-export-0b3c308e84 branch November 11, 2024 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants