We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3080c9c commit 4fb23a9Copy full SHA for 4fb23a9
src/packages/popup/popup.taro.tsx
@@ -208,7 +208,7 @@ export const Popup: FunctionComponent<
208
const renderNode = () => {
209
return (
210
<>
211
- {overlay && (
+ {overlay ? (
212
<Overlay
213
zIndex={index}
214
style={overlayStyles}
@@ -218,9 +218,12 @@ export const Popup: FunctionComponent<
218
lockScroll={lockScroll}
219
duration={duration}
220
onClick={handleOverlayClick}
221
- />
+ >
222
+ {renderPop()}
223
+ </Overlay>
224
+ ) : (
225
+ renderPop()
226
)}
- {renderPop()}
227
</>
228
)
229
}
0 commit comments