On useConfirm
, apparent z-index changes as hostElement
is reused
#4280
Labels
useConfirm
, apparent z-index changes as hostElement
is reused
#4280
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: