mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-07 22:49:26 +08:00
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
This commit is contained in:
parent
becf6f69c9
commit
ce185fbb61
@ -112,11 +112,5 @@ const InternalDndContext = React.memo((props: Props) => {
|
|||||||
InternalDndContext.displayName = 'InternalDndContext';
|
InternalDndContext.displayName = 'InternalDndContext';
|
||||||
|
|
||||||
export const DndContext = (props: Props) => {
|
export const DndContext = (props: Props) => {
|
||||||
const { designable } = useDesignable();
|
|
||||||
|
|
||||||
if (!designable) {
|
|
||||||
return <>{props.children}</>;
|
|
||||||
}
|
|
||||||
|
|
||||||
return <InternalDndContext {...props} />;
|
return <InternalDndContext {...props} />;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user