From ce185fbb614e8c975b81d4d8d7c18cd00e80f50f Mon Sep 17 00:00:00 2001 From: Zeke Zhang <958414905@qq.com> Date: Wed, 8 Jan 2025 11:07:23 +0800 Subject: [PATCH] fix(Table): fix the issue where table rows cannot be dragged (#6013) * fix: fix the issue where table rows cannot be dragged * fix: remove designable judgment --- .../src/schema-component/common/dnd-context/index.tsx | 6 ------ 1 file changed, 6 deletions(-) diff --git a/packages/core/client/src/schema-component/common/dnd-context/index.tsx b/packages/core/client/src/schema-component/common/dnd-context/index.tsx index 0774d30b17..3532520264 100644 --- a/packages/core/client/src/schema-component/common/dnd-context/index.tsx +++ b/packages/core/client/src/schema-component/common/dnd-context/index.tsx @@ -112,11 +112,5 @@ const InternalDndContext = React.memo((props: Props) => { InternalDndContext.displayName = 'InternalDndContext'; export const DndContext = (props: Props) => { - const { designable } = useDesignable(); - - if (!designable) { - return <>{props.children}; - } - return ; };