Skip to content

Commit

Permalink
feat: prevent drag story when it is loading
Browse files Browse the repository at this point in the history
  • Loading branch information
belgamo committed Mar 13, 2020
1 parent 8fcc6de commit 35687bb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const Container = ({
}) => (
<div
className={storyClassName(story, className, isDragging)}
onClick={onToggle}
onClick={!story.loading ? onToggle : () => { }}
title={title}
{...provided.draggableProps}
{...provided.dragHandleProps}
Expand Down Expand Up @@ -89,7 +89,7 @@ export const CollapsedStory = ({ index, sprintIndex, columnId, ...props }) => {
<Draggable
draggableId={JSON.stringify({ id: story.id.toString(), sprintIndex })}
index={index}
isDragDisabled={isDragDisabled}
isDragDisabled
>
{(provided, snapshot) => (
<Container {...props} provided={provided} isDragging={snapshot.isDragging} />
Expand Down

0 comments on commit 35687bb

Please sign in to comment.