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

Error when initializing DockLayout with nonempty windowbox #217

Open
rayman-de opened this issue Aug 3, 2023 · 0 comments
Open

Error when initializing DockLayout with nonempty windowbox #217

rayman-de opened this issue Aug 3, 2023 · 0 comments

Comments

@rayman-de
Copy link

When the initial layout passed as prop to a DockLayout has children in its windowbox, an error is thrown in NewWindow.openChild:

ERROR
Cannot read properties of null (reading 'left')
TypeError: Cannot read properties of null (reading 'left')
at NewWindow.openChild (http://localhost:3000/static/js/bundle.js:21972:7)
at NewWindow.componentDidMount (http://localhost:3000/static/js/bundle.js:21937:10)
at commitLayoutEffectOnFiber (http://localhost:3000/static/js/bundle.js:51397:34)
at commitLayoutMountEffects_complete (http://localhost:3000/static/js/bundle.js:52564:13)
at commitLayoutEffects_begin (http://localhost:3000/static/js/bundle.js:52553:11)
at commitLayoutEffects (http://localhost:3000/static/js/bundle.js:52499:7)
at commitRootImpl (http://localhost:3000/static/js/bundle.js:54409:9)
at commitRoot (http://localhost:3000/static/js/bundle.js:54289:9)
at finishConcurrentRender (http://localhost:3000/static/js/bundle.js:53686:13)
at performConcurrentWorkOnRoot (http://localhost:3000/static/js/bundle.js:53537:11)

This happens both with controlled and uncontrolled layouts.

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