Skip to content

Commit

Permalink
Fix entity highlighter in reader.
Browse files Browse the repository at this point in the history
  • Loading branch information
Integral committed Oct 11, 2017
1 parent 7d635bc commit c407222
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/reader/ReaderLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ class ReaderLayout extends Component {
}

if (newProps.entityId !== this.props.entityId && newProps.entityId !== undefined) {
this.refs.reader.highlightReferences([newProps.entityId])
setTimeout(() => {
this.refs.reader.highlightReferences([newProps.entityId])
}, 10)
}
}

Expand Down

0 comments on commit c407222

Please sign in to comment.