@capillarytech/creatives-library 9.0.17 → 9.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -296,9 +296,12 @@ const CodeEditorPaneComponent = ({
|
|
|
296
296
|
// In fullscreen the editor lives inside a high z-index CapModal;
|
|
297
297
|
// mount the label popover inside that modal so it isn't rendered
|
|
298
298
|
// behind it (body-mounted popovers sit below the modal's z-index).
|
|
299
|
+
// antd v6 renders the modal panel as .ant-modal-container (v5 used
|
|
300
|
+
// .ant-modal-content), so match both for safety.
|
|
299
301
|
getPopupContainer={
|
|
300
302
|
isFullscreenMode
|
|
301
303
|
? triggerNode =>
|
|
304
|
+
triggerNode.closest('.ant-modal-container') ||
|
|
302
305
|
triggerNode.closest('.ant-modal-content') ||
|
|
303
306
|
document.body
|
|
304
307
|
: undefined
|