UNPKG

react-beautiful-dnd-next

Version:

Beautiful and accessible drag and drop for lists with React

17 lines (12 loc) 305 B
// @flow import type { DroppableId, DragImpact } from '../../types'; export default (impact: DragImpact): ?DroppableId => { const { merge, destination } = impact; if (destination) { return destination.droppableId; } if (merge) { return merge.combine.droppableId; } return null; };