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?'),
|
||||
okText: t('Confirm'),
|
||||
cancelText: t('Cancel'),
|
||||
getContainer: () => document.getElementById(id.current),
|
||||
onOk() {
|
||||
ok();
|
||||
},
|
||||
|
@ -358,6 +358,7 @@ export const GoogleMapsComponent = React.forwardRef<GoogleMapForwardedRefProps,
|
||||
content: t('Are you sure to clear the canvas?'),
|
||||
okText: t('Confirm'),
|
||||
cancelText: t('Cancel'),
|
||||
getContainer: () => mapContainerRef.current,
|
||||
onOk() {
|
||||
ok();
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user