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

Change contentHiddenWhenClosed to set the css visibility instead of the html hidden property #195

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

arye-eidelman
Copy link
Contributor

This stops it from interfering with the content's scrollHeight fixing #194.

I've also added two tests for this prop.

This stops it from interfering with the content's scrollHeight fixing glennflanagan#194
@arye-eidelman
Copy link
Contributor Author

arye-eidelman commented Jun 7, 2021

If there were an is-transitioning or in-transition html class then content could be hidden via css selectors alone without needing to be an option in react-collapsible.
Something like

.Collapsible.is-closed:not(.is-transitioning) ~ .Collapsible__contentOuter {
  visibility: hidden;
}

@codeability-ab
Copy link

Great that the bug is fixed! When can we expect it to be merged and released?

@karltaylor
Copy link
Collaborator

Great that the bug is fixed! When can we expect it to be merged and released?

Just want to make sure we're not going to regress, see my comment here #194 (comment)

d4c8d7c was a fix for #177.

Does PR #195 fix both scenarios?

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

Successfully merging this pull request may close these issues.

None yet

3 participants