Skip to content

DndProvider breaking the app on latest versions #175

@aaliakseyenka

Description

@aaliakseyenka

Bug report

  • Package version(s): 5.0.0
  • Browser and OS versions: MacOS, all browsers

Steps to reproduce

  1. npm i react-mosaic-component
  2. create app with basic setup: https://github.com/nomcopter/react-mosaic#apptsx

Actual behavior

App is failed to start wit error:

Could not find the drag and drop manager in the context of DragSource(InternalMosaicWindow). Make sure to render a DndProvider component in your top-level component. Read more: http://react-dnd.github.io/react-dnd/docs/troubleshooting#could-not-find-the-drag-and-drop-manager-in-the-context

Expected behavior

works like a magic.

Notes:

  1. everything works with yarn.
  2. if explicitly wrap Mosaic with <DndProvider backend={HTML5Backend}> in own app, everything works as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions