-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
Fixed menu height doesn't allow re-rendering with different menu items #203
Comments
This is so annoying. I've changed el.style.height = this._initialMenuHeight + 'px'; to: el.style.height = 'initial'; in |
The height is saved so that we can perform a height transition on the container. This is actually an expensive property to animate and comes with a performance cost. Maybe we should just remove this and use transform scale instead? |
Hi guys, I have the same problem, Did you find the way to do this? Thanks in advance, |
I hard coded the same change as @arathunku and it makes the broken drop down menu (on css-in-js 2f1d412) work for me. |
Fixed with #544 |
I just ran into this same problem in |
(Or, better yet, a bugfix release, |
Because the menu height is calculated once and cached, if a dropdown menu component is re-rendered with a different set of
menuItems
, its height will be invalid.Here is a sample dropdown that attempts to render lazily loaded items:
The text was updated successfully, but these errors were encountered: