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
Reproducible on desktop in Chrome, but not in Safari and not in iOS Chrome.
I think the reason is because clicking label focuses on the related input, but all inputs are inside of the parent div 0,0 position and not near the label:
Change browser height so not all buttons fit the viewport
Scroll to the bottom and click any button close to the bottom
Page will scroll up
What operating system(s) are you seeing the problem on?
macOS
What browser(s) are you seeing the problem on?
Chrome
What version of Bootstrap are you using?
5.3.1
The text was updated successfully, but these errors were encountered:
xeron
changed the title
d-grid with checkbox and radio buttons click causes scrolling in Chrome
d-grid with checkbox or radio buttons causes scrolling in Chrome on button click
Aug 23, 2023
We've just experienced the same thing. This appears to be related to the relevant btn-check<input> element being moved below other elements on the page, but then causing the entire page to scroll when the related button is clicked and the <input> is 'in view'.
Prerequisites
Describe the issue
When using checkbox and/or radio buttons inside of a div with
d-grid
class button clicks cause browser window to scroll up.Reproducible on desktop in Chrome, but not in Safari and not in iOS Chrome.
I think the reason is because clicking label focuses on the related input, but all inputs are inside of the parent div 0,0 position and not near the label:
My current workaround:
Reduced test cases
https://codepen.io/iXeron/pen/ExGjvvv
What operating system(s) are you seeing the problem on?
macOS
What browser(s) are you seeing the problem on?
Chrome
What version of Bootstrap are you using?
5.3.1
The text was updated successfully, but these errors were encountered: