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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃獰 馃悰 Fix ResizablePanel component #22214

Merged
merged 1 commit into from
Feb 2, 2023
Merged

Conversation

timroes
Copy link
Collaborator

@timroes timroes commented Feb 1, 2023

What

Fixes a bug that the resizable panel component doesn't render anything, if you first set hideSecondPanel to true and then to false. You can currently seeing this on master by clicking in an empty workspace on a source icon in the empty connection page, which will bring you do the setup for that connector, but nothing will render, due to this issue.

How

react-reflex has apparently a problem when the second panel is first not rendered and then rendered and ends up rendering it with 0 width. The only thing to get it reworking was fully rerendering the component (by changing a key on the ReflexContainer), which worked to fix the issue, but also added a couple of new issues. So after syncing with Teal, we decided to change this to handle the hiding in CSS only, which also fixes the issue and is was less buggy.

We just hide the content of the 2nd panel, so that this component doesn't render unnecessarily.

@octavia-squidington-iv octavia-squidington-iv added the area/frontend Related to the Airbyte webapp label Feb 1, 2023
Copy link
Contributor

@lmossman lmossman left a comment

Choose a reason for hiding this comment

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

Change LGTM and seems to fix the issue from my local testing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/frontend Related to the Airbyte webapp
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants