refactor: map clear modal getContainer (#2410)
This commit is contained in:
parent
823d4bd94d
commit
a6030a5151
@ -216,6 +216,7 @@ export const AMapComponent = React.forwardRef<AMapForwardedRefProps, AMapCompone
|
|||||||
content: t('Are you sure to clear the canvas?'),
|
content: t('Are you sure to clear the canvas?'),
|
||||||
okText: t('Confirm'),
|
okText: t('Confirm'),
|
||||||
cancelText: t('Cancel'),
|
cancelText: t('Cancel'),
|
||||||
|
getContainer: () => document.getElementById(id.current),
|
||||||
onOk() {
|
onOk() {
|
||||||
ok();
|
ok();
|
||||||
},
|
},
|
||||||
|
@ -358,6 +358,7 @@ export const GoogleMapsComponent = React.forwardRef<GoogleMapForwardedRefProps,
|
|||||||
content: t('Are you sure to clear the canvas?'),
|
content: t('Are you sure to clear the canvas?'),
|
||||||
okText: t('Confirm'),
|
okText: t('Confirm'),
|
||||||
cancelText: t('Cancel'),
|
cancelText: t('Cancel'),
|
||||||
|
getContainer: () => mapContainerRef.current,
|
||||||
onOk() {
|
onOk() {
|
||||||
ok();
|
ok();
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user