Giter Site home page Giter Site logo

Comments (3)

mitchheddles avatar mitchheddles commented on May 14, 2024 1

@clauderic That did it, thanks pal!

from dnd-kit.

mitchheddles avatar mitchheddles commented on May 14, 2024

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.

Screen Shot 2021-04-15 at 12 28 57 pm

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.

clauderic avatar clauderic commented on May 14, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.