Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Reopening a Panel with "isHiddenOnDismiss" and have it top of other Layers?#34965

Unanswered
StradivariT asked this question inQ&A
Discussion options

Currently we can use theisHiddenOnDismiss prop from Panel to be able to preserve its children state when closing and reopening the Panel. However let's say we have two different Panels, Panel1 and Panel2, both usingisHiddenOnDismiss, we open and close the Panels in that order, first Panel1 and then Panel2. We then open Panel2 first and while this is still open we open Panel1, Panel1 would be behind Panel2, and depending on the use case, we wouldn't know if Panel1 was even opened since it might be directly behind Panel2.

Is it possible somehow to be able to useisHiddenOnDismiss and have reopened panels to always be placed at the end of the LayerHost so that it will appear on top?

You must be logged in to vote

Replies: 1 comment

Comment options

You should avoid usingisHiddenOnDismiss for Multiple Panels.
If preserving state is not critical, consider unmounting panels on dismiss instead of hiding them. This avoids stacking issues since only one panel is mounted and visible at a time.

You must be logged in to vote
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
2 participants
@StradivariT@ValentinaKozlova

[8]ページ先頭

©2009-2025 Movatter.jp