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

[SelectField] shows incorrect opening animation #5764

Closed
jampy opened this issue Dec 12, 2016 · 1 comment
Closed

[SelectField] shows incorrect opening animation #5764

jampy opened this issue Dec 12, 2016 · 1 comment
Labels
bug 🐛 Something doesn't work component: select This is the name of the generic UI component, not the React module!

Comments

@jampy
Copy link

jampy commented Dec 12, 2016

When opening a <SelectField> that contains enough elements to scroll and having one item pre-selected (value property set) causes the appear-animation to show the wrong scroll position. Once the animation completes the menu jumps to the final position:

selectbox-bad

This varies in base of number of elements contained and which element selected. It is also very noticeable on mobile (Samsung S7) and can be reproduced constantly.

Try yourself on WebpackBin. If you can't reproduce, maybe try different number of items / different preselection.

The above was recorded on Desktop with Chrome 55 on a 4K display (60Hz, if that matters) on Windows.

When I move the browser window to a secondary 1050p monitor and do the test there, then it looks better:

selectbox-okay

So this might be related to high density displays .

@jampy
Copy link
Author

jampy commented Dec 12, 2016

Please also note that you can see clearly in the GIFs that the popup changs it's width while closing.

@oliviertassinari oliviertassinari added the component: select This is the name of the generic UI component, not the React module! label Dec 18, 2016
@oliviertassinari oliviertassinari changed the title <SelectField> shows incorrect opening animation [SelectField] shows incorrect opening animation Dec 18, 2016
@mbrookes mbrookes added the bug 🐛 Something doesn't work label Jan 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: select This is the name of the generic UI component, not the React module!
Projects
None yet
Development

No branches or pull requests

3 participants