Comments (3)
@clauderic That did it, thanks pal!
from dnd-kit.
Hey @clauderic I know this is an old ticket, but I'm seeing this issue with useSortable
.
Do you know what causes this or have any tips for debugging? It looks like useDraggable
is getting the default context value.
I don't think there's anything special about my usage:
const sensors = useSensors(
useSensor(PointerSensor),
useSensor(KeyboardSensor, {
coordinateGetter: sortableKeyboardCoordinates,
}),
);
<DndContext sensors={sensors}>
<SortableContext items={sortedStatuses} strategy={verticalListSortingStrategy}>
{sortedStatuses.map((idx) => {
const status = statusMap[idx];
return <SettingsStatusListItem key={idx} id={idx} boardIdx={board.idx} status={status} />;
})}
</SortableContext>
</DndContext>;
from dnd-kit.
This happens when you have multiple versions of @dnd-kit/core
installed locally. Double check your package-lock.json
or yarn.lock
files, you most likely have multiple versions installed in parallel.
Refer to this issue for more debugging steps #182
from dnd-kit.
Related Issues (20)
- Autoscroll causes draggable items and click events to become offset from mouse positioning on Safari desktop HOT 1
- ERROR ResizeObserver loop completed with undelivered notifications. HOT 5
- MultipleContainers.tsx empty container not droppable HOT 1
- Is it possible to have items that span across multiple rows?
- cant enter spacebar in input text with listeners enabled
- Fixed distance between the dragged item and its dropping position after a list gets updated
- DragOverlay with TableRow
- Drag overlay functionality - Pickup animation
- nested SortableContexts onDrag End
- Is there a way to change the overlay style in drag mode?
- An error occurs because of scrollableAncestorRects
- Bug when auto-scrolling with drop locations inside overflow parent HOT 2
- Can't copy text in docs
- useSortable dragging render issue HOT 1
- Suggestion: activation hooks
- shouldCancelStart? HOT 1
- `SortableContext.disabled` overridden by `draggable.disabled`
- `useDroppable` doesn't work on root component HOT 1
- After dragging and releasing a link, the link activates HOT 2
- Storybook not working HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dnd-kit.