mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Update Store.getIndexOfElementID to take isCollapsed into account
This commit is contained in:
@@ -353,7 +353,7 @@ export default class Store extends EventEmitter {
|
||||
break;
|
||||
}
|
||||
const child = ((this._idToElement.get(childID): any): Element);
|
||||
index += child.weight;
|
||||
index += child.isCollapsed ? 1 : child.weight;
|
||||
}
|
||||
|
||||
previousID = current.id;
|
||||
|
||||
Reference in New Issue
Block a user