Skip to content

Commit

Permalink
fix: dnd on touch devices
Browse files Browse the repository at this point in the history
  • Loading branch information
foyarash committed Dec 12, 2024
1 parent aba7c4d commit b19678f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/long-cameras-arrive.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@premieroctet/next-admin": patch
---

fix: dnd on touch devices (#461)
3 changes: 2 additions & 1 deletion packages/next-admin/src/components/inputs/DndItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ const DndItem = ({
<li
className={clsx(
"ring-nextadmin-border-default dark:ring-dark-nextadmin-border-strong bg-nextadmin-background-default dark:bg-dark-nextadmin-background-subtle relative flex w-full cursor-default justify-between gap-2 rounded-md px-3 py-2 text-sm placeholder-gray-500 shadow-sm ring-1",
!deletable && "cursor-not-allowed opacity-50"
!deletable && "cursor-not-allowed opacity-50",
"touch-none"
)}
ref={setNodeRef}
style={style}
Expand Down

0 comments on commit b19678f

Please sign in to comment.