Skip to content
Snippets Groups Projects
Commit 553170b7 authored by Stephen Burgess's avatar Stephen Burgess Committed by Eugen
Browse files

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

parent 8a6096a3
No related branches found
No related tags found
No related merge requests found
......@@ -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}
/>
);
}
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment