fix: drag and drop (#4924)

This commit is contained in:
oomeow
2025-10-02 12:32:55 +08:00
committed by GitHub
Unverified
parent 8a4f2de887
commit 982c8b4df2
2 changed files with 4 additions and 0 deletions

View File

@@ -5,6 +5,7 @@ import {
useSensor,
useSensors,
DragEndEvent,
DragOverlay,
} from "@dnd-kit/core";
import { SortableContext } from "@dnd-kit/sortable";
import { Add, NetworkCheck } from "@mui/icons-material";
@@ -196,6 +197,7 @@ export const TestCard = () => {
onDragEnd={onDragEnd}
>
{renderTestItems}
<DragOverlay />
</DndContext>
</ScrollBox>

View File

@@ -2,6 +2,7 @@ import {
closestCenter,
DndContext,
DragEndEvent,
DragOverlay,
KeyboardSensor,
PointerSensor,
useSensor,
@@ -898,6 +899,7 @@ const ProfilePage = () => {
</Grid>
</Box>
</Box>
<DragOverlay />
</DndContext>
<ProfileViewer