Skip to content

Commit

Permalink
ListItem: supported style property
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurStam committed Aug 1, 2018
1 parent de4f386 commit ade75c0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/ListItem/ListItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export default class ListItem extends Component {
multiline: PropTypes.bool,
description: PropTypes.node,
className: PropTypes.string,
style: PropTypes.object,

selectable: PropTypes.bool,

Expand Down Expand Up @@ -129,6 +130,7 @@ export default class ListItem extends Component {
removable,
removePlaceholder,
href,
style,
...restProps
} = this.props;

Expand All @@ -146,7 +148,7 @@ export default class ListItem extends Component {
'ListItem--removing': this.state.removing
}, className)}
ref={this.getRootRef}
style={removable ? { height: this.state.height } : null}
style={removable ? { ...style, height: this.state.height } : style}
>
<Tappable
{...linkProps}
Expand Down

0 comments on commit ade75c0

Please sign in to comment.