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

hoo-checkbox cannot be inline scrolled into view #153

Open
gabbsmo opened this issue Sep 9, 2024 · 0 comments
Open

hoo-checkbox cannot be inline scrolled into view #153

gabbsmo opened this issue Sep 9, 2024 · 0 comments

Comments

@gabbsmo
Copy link

gabbsmo commented Sep 9, 2024

Describe the bug
If you make a long list of checkboxes (e.g. a table grid with selectable rows), the checkboxes are focusable, but the scrollable parent element will not scroll them into view.

This issue seem to only apply when their is a inline scrollable parent element. Scrolling on the document level seem to work as expected.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://jsfiddle.net/7vg2tkfu/
  2. Click the textbox

Expected behavior
As with any focusable element, they should automatically be scrolled into view when they receive focus.

Desktop (please complete the following information):

  • OS: Windows
  • Browser: Edge
  • Version: 128

Additional context
My workaround:

.hoo-checkbox {
    position: unset; /* position: absolute; seem to be the culprit */
    display: block; /* To get rid of any whitespace */
    width: 0;
    height: 0;
    margin: 0;
}

Fiddle with workaround: https://jsfiddle.net/7vg2tkfu/1/

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

No branches or pull requests

1 participant