Comments (8)
I'm also met this bug several days ago. I'm looking forward for the moment when this bug will be fixed, and I can use this lib.
from react-collapse.
Hi @GeraldIstar! If you can debug it a bit and find the fix - that would be awesome. I would really appreciate any help!
from react-collapse.
Looks like problem is near to defaultStyle of Motion component
Here, in most cases compoent start from 0, but some times height
provided from state is also equal to 0 (not sure, might be my fault).
https://github.com/nkbt/react-collapse/blob/master/src/Collapse.js#L151
This cause that 0-height is provided to newStyle
here:
https://github.com/nkbt/react-collapse/blob/master/src/Collapse.js#L169
But I've just spent few time, and can suggest that I missed somthing.
from react-collapse.
Any news on this? I'm experiencing the same :(
from react-collapse.
The Motion
component needs to have the same height
set in defaultStyle
as in the previously rendered static div
. It's quite tricky to solve as at the moment there is no way to tell if the previous render
call was a static one or not. Storing the static height between calls could be a solution but seems quite hacky to me. Any ideas?
from react-collapse.
@davidspiess I actually store current height between calls, so it is as hacky as hell already ;)
This does not seem like a hugely complicated issue (comparing to the flexbox one, for example). There is a PR, I'll check it asap.
from react-collapse.
Thanks to @GeraldIstar, it's all good now \o/
from react-collapse.
https://github.com/nkbt/react-collapse/releases/tag/v2.2.1
from react-collapse.
Related Issues (20)
- as-prop for Collapse HOT 1
- Fade in/fade out with opacity style on open/close HOT 1
- hasNestedCollapse no longer necessary in v5 yet is used in Nested example HOT 1
- React-collapse does not work on some zoom levels (devicePixelRatio =1.25) Following up #238 HOT 1
- On collapse, .ReactCollapse--collapse element is being completely removed from the DOM
- Animation not working when the Collapse has a parent that it is in modal or something with position fixed HOT 2
- Financing
- The overflow for 'React-collapse--' is overflow:hidden , not overflow:initial for IE11 HOT 2
- Animation doesn't work HOT 5
- Collapse for table row HOT 3
- Starting mix-height HOT 7
- initialStyle not working HOT 3
- Collapse horizontally aligned content HOT 3
- Prop passing suggestion HOT 8
- Block stays expenaded with isOpened=false HOT 4
- Nested collapsible shows animation. Help needed HOT 4
- Collapse/Open all on button click? HOT 1
- Position sticky inside collapse HOT 8
- Is the component still maintained + proposed feature additions HOT 1
- CSS modules in React app won't affect the rendered Collapse HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-collapse.