refactor: map clear modal getContainer (#2410)

This commit is contained in:
katherinehhh 2023-08-08 16:40:43 +08:00 committed by GitHub
parent 823d4bd94d
commit a6030a5151
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -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();
},

View File

@ -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();
},