Skip to content

Commit

Permalink
fix: popup 鸿蒙适配弹出时退出app的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyatong committed Feb 28, 2025
1 parent 3080c9c commit 4fb23a9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/packages/popup/popup.taro.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ export const Popup: FunctionComponent<
const renderNode = () => {
return (
<>
{overlay && (
{overlay ? (
<Overlay
zIndex={index}
style={overlayStyles}
Expand All @@ -218,9 +218,12 @@ export const Popup: FunctionComponent<
lockScroll={lockScroll}
duration={duration}
onClick={handleOverlayClick}
/>
>
{renderPop()}
</Overlay>
) : (
renderPop()
)}
{renderPop()}
</>
)
}
Expand Down

0 comments on commit 4fb23a9

Please sign in to comment.