Update Store.getIndexOfElementID to take isCollapsed into account
Brian Vaughn committed
Apr 10, 2019 at 07:53 UTC
1f7f0ea6913f261878d5e70cb4e538e141ea6109
1 file changed
+1
-1
src/devtools/store.js
+1
-1
@@ -353,7 +353,7 @@ export default class Store extends EventEmitter {
353
break;
354
}
355
const child = ((this._idToElement.get(childID): any): Element);
356
- index += child.weight;
356
+ index += child.isCollapsed ? 1 : child.weight;
357
}
358
359
previousID = current.id;