Devographics / Monorepo

Monorepo containing the State of JS apps
surveyform-sigma.vercel.app
Other
124 stars 50 forks source link

Dropdown language selector menu shifts on scroll #287

Open okplanbo opened 11 months ago

okplanbo commented 11 months ago

Hi everyone.

The dropdown menu shifts to the left if it is opened and if the page is being scrolled.

Functional, but a bit annoying.

image image

eric-burel commented 10 months ago

On it, this is FF specific (edit: actually no I can repro on Chrome also, when the screen is smaller in height than the menu I think, will dig).

What happens is that the "x-placement" attribute changes while we scroll. I think the dropdown notices that it should open in a different direction depending on how much we scroll. It could be disabled here.

Also should be in dark mode.

Update: the bug is not in our own code, see https://github.com/react-bootstrap/react-bootstrap/issues/6715 I've however set it to dark version so it doesn't flash people.