Skip to content

Commit 8aeec0e

Browse files
committed
fix(TextRange): create TextRange with section ref as key, so it won't re-created when TextColumn is re-rendered.
1 parent e83ef3d commit 8aeec0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

static/js/TextColumn.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ class TextColumn extends Component {
395395
unsetTextHighlight={this.props.unsetTextHighlight}
396396
navigatePanel={this.props.navigatePanel}
397397
translationLanguagePreference={this.props.translationLanguagePreference}
398-
key={sref} />);
398+
key={oref.sectionRef} />);
399399
});
400400

401401
let pre, post, bookTitle;

0 commit comments

Comments
 (0)