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

Gutter has wrong position when pages gets refreshed #757

Open
esskar opened this issue Aug 30, 2022 · 1 comment
Open

Gutter has wrong position when pages gets refreshed #757

esskar opened this issue Aug 30, 2022 · 1 comment

Comments

@esskar
Copy link

esskar commented Aug 30, 2022

I am running in a strange behaviour with react-split and mui

I have a vertical split with two elements

<Split
      direction="vertical"
      sizes={[50, 50]}
      minSize={200}
      style={{ height: "100%" }}
    >
      <List listId={listId} />
      <Detail listId={listId} detailsId={detailsId} />
</Split>

This works fine initially, the DOM renders

<List />
<Gutter />
<Detail />

when i press F5, i suddently get

<Gutter />
<List />
<Detail />

Any clue?

@esskar
Copy link
Author

esskar commented Aug 31, 2022

This seems to happen, when the children of the split get replaced, then the Split is not recreated. when one of the children is fragment that can different childs depending of the state

when the children get wrapped in another div, the problem is none. Maybe not a real bug, but something to document maybe

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

No branches or pull requests

1 participant