Fix #1097 When onClick is falsy, do not make status content clickable (#1434)

th-downstream
Stephen Burgess 8 years ago committed by Eugen
parent adee97cb6e
commit 17ce0b4141

@ -125,7 +125,7 @@ const StatusContent = React.createClass({
<div style={{ display: hidden ? 'none' : 'block', ...directionStyle }} dangerouslySetInnerHTML={content} />
</div>
);
} else {
} else if (this.props.onClick) {
return (
<div
className='status__content'
@ -135,6 +135,14 @@ const StatusContent = React.createClass({
dangerouslySetInnerHTML={content}
/>
);
} else {
return (
<div
className='status__content'
style={{ ...directionStyle }}
dangerouslySetInnerHTML={content}
/>
);
}
},

Loading…
Cancel
Save