You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When the HTML and body elements are not scrollable (instead some container div is scrollable), clicking on a checkbox that's not visible without scrolling down causes the HTML to be scrolled (.scrollTop applied), making the page pretty much unusable.
Click on a checkbox that wasn't visible without scrolling
See the whole page shifting up
Expected behavior
The container div gets scrolled to make the checkbox visible.
Screenshots
Desktop (please complete the following information):
OS: Linux (Fedora 40)
Browser: Brave, Chrome, could not reproduce on Firefox
Version: Brave 1.67.123, Chrome 127.0.6533.72
Smartphone (please complete the following information):
Device: Xiaomi 12
OS: Android 14
Browser: Brave
Version: 1.67.136
Additional context
I could only reproduce this in chromium-based browsers, not Firefox.
Tho in Firefox no scrolling happens, so that's not expected behavior either.
The text was updated successfully, but these errors were encountered:
I have encountered this problem before. Because the checkbox input element style has position: "absolute" , this causes the element to be out of the normal document flow.You can try to give the relative attribute to the parent element or Checkbox.Root.
Describe the bug
When the HTML and body elements are not scrollable (instead some container div is scrollable), clicking on a checkbox that's not visible without scrolling down causes the HTML to be scrolled (.scrollTop applied), making the page pretty much unusable.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The container div gets scrolled to make the checkbox visible.
Screenshots
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
I could only reproduce this in chromium-based browsers, not Firefox.
Tho in Firefox no scrolling happens, so that's not expected behavior either.
The text was updated successfully, but these errors were encountered: