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

fix(APPL-872): return null if Collapse is not opened #215

Merged
merged 1 commit into from
Apr 17, 2024

Conversation

MrSltun
Copy link
Member

@MrSltun MrSltun commented Apr 17, 2024

This PR resolves APPL-872

Description

This PR updates the Collapse element to not render a view when the Collapse is not opened

cc @artsy/onyx-devs

Co-authored-by: George <g.kartalis7@gmail.com>
Co-authored-by: Brian Beckerle <49686530+brainbicycle@users.noreply.github.com>
@MrSltun MrSltun self-assigned this Apr 17, 2024
@artsy-peril artsy-peril bot added Jira Synced Indicates that Peril has connected this PR to Jira Version: Minor A deploy for new features labels Apr 17, 2024
Copy link
Contributor

@brainbicycle brainbicycle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 thank you!

@brainbicycle
Copy link
Contributor

just a heads up to onyx this seems to work fine but does make the transition a bit jumpy. It fixes the worse issue of hidden elements displaying and causing the app to become unresponsive though.

@brainbicycle brainbicycle merged commit 072429a into main Apr 17, 2024
6 checks passed
@brainbicycle brainbicycle deleted the s+g+b/fix/not-render-when-collapsed branch April 17, 2024 15:45
@artsyit
Copy link
Collaborator

artsyit commented Apr 17, 2024

🚀 PR was released in v13.1.29 🚀

@artsyit artsyit added the released This issue/pull request has been released. label Apr 17, 2024
@olerichter00
Copy link
Contributor

Thanks for the fix! I will look into this again, because we've made a change to this component to not unmount the content when it's collapsed. This change was supposed to keep the state when going back to a previous step in the SWA flow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Jira Synced Indicates that Peril has connected this PR to Jira released This issue/pull request has been released. Version: Minor A deploy for new features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants