Reactjs 错误:使用拖放时未捕获[错误:不变量失败:拖动句柄无法获取可拖动引用]

Reactjs 错误:使用拖放时未捕获[错误:不变量失败:拖动句柄无法获取可拖动引用],reactjs,react-beautiful-dnd,Reactjs,React Beautiful Dnd,我正在我的项目中使用react atlassian拖放包。我有一个简单的表,其中的行是可拖动的。看起来是这样的: <DragDropContext onDragEnd={onDragEnd}> <Droppable droppableId="droppable"> {(provided) => ( <div {...provided.droppableProps}

我正在我的项目中使用react atlassian拖放包。我有一个简单的表,其中的行是可拖动的。看起来是这样的:

   <DragDropContext onDragEnd={onDragEnd}>
      <Droppable droppableId="droppable">
        {(provided) => (
          <div
            {...provided.droppableProps}
            ref={provided.innerRef}
          >
            <EnhancedSortableTable
              headerColumns={headerColumns}
              data={sortedTasks}
              urlParams={urlParams}
              pushToHistory={pushToHistory}
              withPaging={false}
              withRowSelecting={false}
            >
              <TaskRow onOpen={onOpen}/>
            </EnhancedSortableTable>
          </div>
        )}
      </Droppable>
    </DragDropContext>
这在浏览器中可以正常工作,但当我运行测试时,我会得到:

Error: Uncaught [Error: Invariant failed: Drag handle could not obtain draggable ref]
我怎样才能解决这个问题

Error: Uncaught [Error: Invariant failed: Drag handle could not obtain draggable ref]