Skip to content

Commit 4fb23a9

Browse files
committed
fix: popup 鸿蒙适配弹出时退出app的问题
1 parent 3080c9c commit 4fb23a9

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/packages/popup/popup.taro.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ export const Popup: FunctionComponent<
208208
const renderNode = () => {
209209
return (
210210
<>
211-
{overlay && (
211+
{overlay ? (
212212
<Overlay
213213
zIndex={index}
214214
style={overlayStyles}
@@ -218,9 +218,12 @@ export const Popup: FunctionComponent<
218218
lockScroll={lockScroll}
219219
duration={duration}
220220
onClick={handleOverlayClick}
221-
/>
221+
>
222+
{renderPop()}
223+
</Overlay>
224+
) : (
225+
renderPop()
222226
)}
223-
{renderPop()}
224227
</>
225228
)
226229
}

0 commit comments

Comments
 (0)