diff --git a/web/src/pages/app/database/CollectionDataList/mods/DataPanel/index.tsx b/web/src/pages/app/database/CollectionDataList/mods/DataPanel/index.tsx index 1ee1dbc591..fffa6e489f 100644 --- a/web/src/pages/app/database/CollectionDataList/mods/DataPanel/index.tsx +++ b/web/src/pages/app/database/CollectionDataList/mods/DataPanel/index.tsx @@ -145,7 +145,7 @@ export default function DataPanel() { return ( <> -
+
{ @@ -190,7 +190,7 @@ export default function DataPanel() { refresh(search); }} > -
+
- - - + + ); }} /> diff --git a/web/src/pages/app/database/PolicyDataList/index.tsx b/web/src/pages/app/database/PolicyDataList/index.tsx index cf38637ceb..cfbbc6597b 100644 --- a/web/src/pages/app/database/PolicyDataList/index.tsx +++ b/web/src/pages/app/database/PolicyDataList/index.tsx @@ -142,21 +142,21 @@ export default function PolicyDataList() { }} toolComponent={(item: any) => { return ( - - - - + + ); }} /> diff --git a/web/src/pages/app/database/RightComponent/DeleteButton.tsx b/web/src/pages/app/database/RightComponent/DeleteButton.tsx index 9f6ae86668..20080aa17d 100644 --- a/web/src/pages/app/database/RightComponent/DeleteButton.tsx +++ b/web/src/pages/app/database/RightComponent/DeleteButton.tsx @@ -12,7 +12,7 @@ import { t } from "i18next"; import IconWrap from "@/components/IconWrap"; export default function DeleteButton(props: { data: any; deleteMethod: any }) { - const { isOpen, onOpen, onClose } = useDisclosure(); + const { isOpen, onToggle, onOpen, onClose } = useDisclosure(); return ( <> { + onToggle(); event?.stopPropagation(); }} >