-
Notifications
You must be signed in to change notification settings - Fork 114
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
"Maximum call stack size exceeded" when passing "display: flex" into "style" #35
Comments
Thanks for report! I'll have a look at it as soon as I can
|
Hi , Is this issue fixed? |
Sorry for holding with this issue. When container has As a quick solution I would suggest to avoid setting flex to Collapse element itself. Set it to either its parent or child node like in here: http://codepen.io/nkbt/pen/ZWzpYN?editors=101 |
@nkbt I ended up getting this error using |
Yeah, height is not being properly determined on Sorry everyone for the delay with fixing this issue (and other ones). I was working heavily on a backend/devops and did not do any UI work for last ~7 months. Now I am doing UI again and will be able to work on this (well, will have to anyway, as all these UI libs are going to be heavily used). Thanks for your patience and help! |
@nkbt No worries! I appreciate the work -- it has helped me figure out my own basic solution that seems to be working (so far 😄 ) for my current use case: https://github.com/nathanmarks/material-ui/blob/stepper-updates/src/internal/ExpandTransitionChild.js |
Cool 👌 |
Closing, most likely will be fixed by #72 |
Will add an example case... |
Just adding
display: 'flex'
to thestyle
prop of theCollapse
causes"Uncaught RangeError: Maximum call stack size exceeded"
.From my investigation, the infinite recursion is caused by the
setState
call in theonHeightReady
callback which is called from within asetState
callback (fromreact-height
).Repro: http://codepen.io/anon/pen/WrYBbP?editors=101
Just click "Toggle" on the first example and look into the console.
This may be an issue of
react-height
or evenreact
itself. I'm not sure what to do with that, so reporting here first.The text was updated successfully, but these errors were encountered: