-
Notifications
You must be signed in to change notification settings - Fork 598
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
On useConfirm
, apparent z-index changes as hostElement
is reused
#4280
Comments
Hi @Rafatcb 👋 Thanks you for creating this issue. We can confirm that there is a bug here and it is in our backlog now. You are welcome to raise a pull request to fix the bug. Thank you! 🙌 |
Hi! This issue has been marked as stale because it has been open with no activity for 180 days. You can comment on the issue or remove the stale label to keep it open. If you do nothing, this issue will be closed in 7 days. |
It's still an issue, but I wasn't able to update the package version in the CodeSandbox example due to the error:
|
Hi! This issue has been marked as stale because it has been open with no activity for 180 days. You can comment on the issue or remove the stale label to keep it open. If you do nothing, this issue will be closed in 7 days. |
Improve |
Description
When using
useConfirm
, ahostElement
is created to display the Dialog. As thishostElement
is not removed from the DOM, when browsing, its position in the DOM changes from "last" to a higher position. This causesz-index: 1
to behave differently depending on the occasion on whichconfirm()
is invoked.Screencast.from.2024-02-17.09-28-04.webm
Steps to reproduce
Reproducible example: CodeSandbox.
The yellow
div
will be above the Dialog.Version
v35.10.0
Browser
Chrome, Firefox
The text was updated successfully, but these errors were encountered: