Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
fix(lsg): drag option on li items
Browse files Browse the repository at this point in the history
  • Loading branch information
Lasse Küchler committed Dec 13, 2017
1 parent 50eb476 commit 23d3bec
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/component/container/project_list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ export class ProjectList extends React.Component<ProjectListProps> {

return (
<Li
draggable={props.draggable}
handleDragStart={props.handleDragStart}
key={index}
active={props.active}
Expand Down
12 changes: 11 additions & 1 deletion src/lsg/patterns/list/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,17 @@ export class Li extends React.Component<LiProps> {
}

public render(): JSX.Element {
return <StyledLi {...this.props}>{this.props.children}</StyledLi>;
const { active, draggable, onClick, handleDragStart } = this.props;
return (
<StyledLi
active={active}
draggable={draggable}
onClick={onClick}
onDragStart={handleDragStart}
>
{this.props.children}
</StyledLi>
);
}
}

Expand Down

0 comments on commit 23d3bec

Please sign in to comment.