-
-
Notifications
You must be signed in to change notification settings - Fork 79k
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
Bug: scroll position changes when the button is dropdown #33993
Comments
bro, you need to provide steps to reproduce this issue |
Someone of @twbs/css-review owes me a coffee!😏 Figured it might be something with our JS. It happens because of the button receiving focus which is done programmatically in our script. (Safari doesn't focus a button automatically when you click it.. go figure) The click that closes it returns focus to the body again, because we focus it only when we call This only happens because the navbar is made As a side note, I couldn't find any bug report about our page scrolling when you type something into the search. (Which happens for Chromium based, Firefox and Safari. Why I mention it? Because this is caused by the same thing..) The reason for all this is https://github.com/twbs/bootstrap/blob/main/site/assets/scss/_content.scss#L6-L10 |
Does it only happen in Safari? I can't reproduce on either Firefox or Chromium on Ubuntu. This looks like an odd browser bug, and since we don't use |
Ow and @alpadev up for the coffee ;) |
@ffoodd yeah the dropdown toggle scroll only happens in Safari. Scrolling while typing into the search tho, happens for me on Chromium based and Firefox (nightly) on Windows, Safari on Mac. The reason for this seems to be that Edit: Looks like the scroll on input is going to be addressed for Chromium - https://bugs.chromium.org/p/chromium/issues/detail?id=1178622 |
Thinking the thing to do is to drop |
Agreed, that's sad but I can't think of another workaround for now. |
The text was updated successfully, but these errors were encountered: