Skip to content

Commit

Permalink
fix: fix the issue where the overlay's z-index change causes it to co…
Browse files Browse the repository at this point in the history
…ver buttons on mobile devices. (#6144)
  • Loading branch information
huhuanming authored Nov 7, 2024
1 parent 5391c39 commit a7bd5e4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/components/src/composite/Dialog/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,9 @@ function DialogFrame({
enterStyle={{ opacity: 0 }}
exitStyle={{ opacity: 0 }}
backgroundColor="$bgBackdrop"
zIndex={sheetProps?.zIndex || zIndex}
zIndex={
platformEnv.isNative ? undefined : sheetProps?.zIndex || zIndex
}
/>
<Sheet.Frame
unstyled
Expand Down

0 comments on commit a7bd5e4

Please sign in to comment.