Skip to content

Commit

Permalink
fix(listitem): child links of listitem work again
Browse files Browse the repository at this point in the history
  • Loading branch information
foot committed Feb 27, 2019
1 parent 78b7c45 commit 7ddf210
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ListItem/ListItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ const Subtext = styled.span`
*/
class ListItem extends React.Component {
handleClick = ev => {
ev.preventDefault();
const { onClick, value } = this.props;
if (onClick) {
ev.preventDefault();
onClick(value);
}
};
Expand Down

0 comments on commit 7ddf210

Please sign in to comment.