fix: drag and drop (#4924)
This commit is contained in:
@@ -5,6 +5,7 @@ import {
|
|||||||
useSensor,
|
useSensor,
|
||||||
useSensors,
|
useSensors,
|
||||||
DragEndEvent,
|
DragEndEvent,
|
||||||
|
DragOverlay,
|
||||||
} from "@dnd-kit/core";
|
} from "@dnd-kit/core";
|
||||||
import { SortableContext } from "@dnd-kit/sortable";
|
import { SortableContext } from "@dnd-kit/sortable";
|
||||||
import { Add, NetworkCheck } from "@mui/icons-material";
|
import { Add, NetworkCheck } from "@mui/icons-material";
|
||||||
@@ -196,6 +197,7 @@ export const TestCard = () => {
|
|||||||
onDragEnd={onDragEnd}
|
onDragEnd={onDragEnd}
|
||||||
>
|
>
|
||||||
{renderTestItems}
|
{renderTestItems}
|
||||||
|
<DragOverlay />
|
||||||
</DndContext>
|
</DndContext>
|
||||||
</ScrollBox>
|
</ScrollBox>
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ import {
|
|||||||
closestCenter,
|
closestCenter,
|
||||||
DndContext,
|
DndContext,
|
||||||
DragEndEvent,
|
DragEndEvent,
|
||||||
|
DragOverlay,
|
||||||
KeyboardSensor,
|
KeyboardSensor,
|
||||||
PointerSensor,
|
PointerSensor,
|
||||||
useSensor,
|
useSensor,
|
||||||
@@ -898,6 +899,7 @@ const ProfilePage = () => {
|
|||||||
</Grid>
|
</Grid>
|
||||||
</Box>
|
</Box>
|
||||||
</Box>
|
</Box>
|
||||||
|
<DragOverlay />
|
||||||
</DndContext>
|
</DndContext>
|
||||||
|
|
||||||
<ProfileViewer
|
<ProfileViewer
|
||||||
|
|||||||
Reference in New Issue
Block a user