Skip to content

Commit

Permalink
Revert behavior changes of trends and data series
Browse files Browse the repository at this point in the history
  • Loading branch information
SkyLeite committed Jun 22, 2022
1 parent 525465c commit e2e8caf
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions webview/src/shared/components/dragDrop/DragDropContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,14 @@ export const DragDropContainer: React.FC<DragDropContainerProps> = ({
e.preventDefault()
if (isSameGroup(draggedRef?.group, group)) {
const { id } = e.currentTarget
!disabledDropIds.includes(id) &&
id !== draggedId &&
setDirection(getDragEnterDirection(e))

if (disabledDropIds.includes(id)) {
return
}

return hideDragged
? id === draggedOverId && setDirection(getDragEnterDirection(e))
: id !== draggedId && setDirection(getDragEnterDirection(e))
}
}

Expand Down

0 comments on commit e2e8caf

Please sign in to comment.