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

Keep OffCanvas nodes in DOM #6679

Open
flipchart opened this issue Aug 25, 2023 · 0 comments
Open

Keep OffCanvas nodes in DOM #6679

flipchart opened this issue Aug 25, 2023 · 0 comments

Comments

@flipchart
Copy link

Is your feature request related to a problem? Please describe

When OffCanvas closes, it removes the nodes from the DOM rather than hiding them. This means that any children of OffCanvasBody are unmounted (which has an impact for me).

Describe the solution you'd like

I'd like OffCanvas to stay in the DOM but just be hidden, or at least have an option to do so

Describe alternatives you've considered

Tried using createPortal, which almost works, but when switching the target of the portal from the OffCanvasBody to some other node, the children are unmounted/remounted which produces the same problem for me

Additional context

No response

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

No branches or pull requests

1 participant