Update Store.getIndexOfElementID to take isCollapsed into account

This commit is contained in:
Brian Vaughn
2019-04-10 07:53:06 -07:00
parent b004a79415
commit 1f7f0ea691
+1 -1
View File
@@ -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;