Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

initialStyle not working #291

Open
Jacint-Magyar opened this issue Mar 25, 2021 · 3 comments
Open

initialStyle not working #291

Jacint-Magyar opened this issue Mar 25, 2021 · 3 comments

Comments

@Jacint-Magyar
Copy link

Jacint-Magyar commented Mar 25, 2021

initialStyle prop not applied on Collapse.
I want to set initial height instead of the default 0, when it's NOT open. So it would appear partially open.
I assumed initialStyle is for this use case as it would be very useful.

@nkbt
Copy link
Owner

nkbt commented Mar 25, 2021

It is not really necessary. Just do not ever close Collapse. Keep it open and just change your content height. Collapse will smoothly follow

@nkbt
Copy link
Owner

nkbt commented Mar 25, 2021

InitialStyle is not what you think it is.

See notes:

initially opened Collapse elements will be statically rendered with no animation. You can override this behaviour by using initialStyle prop

@Jacint-Magyar
Copy link
Author

Jacint-Magyar commented Mar 25, 2021

Thank you. It works if i keep it open and only change height.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants