Add comment to _scrollToToken
This commit is contained in:
parent
fe83a99ab7
commit
4febc63aee
1 changed files with 3 additions and 0 deletions
|
@ -555,6 +555,9 @@ module.exports = React.createClass({
|
|||
var messages = this.refs.itemlist.children;
|
||||
for (var i = messages.length-1; i >= 0; --i) {
|
||||
var m = messages[i];
|
||||
// 'data-contained-scroll-tokens' has been set, indicating that a child
|
||||
// element contains elements that each have a token. Check this array of
|
||||
// tokens for `scrollToken`.
|
||||
if (m.dataset.containedScrollTokens &&
|
||||
m.dataset.containedScrollTokens.indexOf(scrollToken) !== -1) {
|
||||
node = m;
|
||||
|
|
Loading…
Reference in a new issue