From 1f7f0ea6913f261878d5e70cb4e538e141ea6109 Mon Sep 17 00:00:00 2001 From: Brian Vaughn Date: Wed, 10 Apr 2019 07:53:06 -0700 Subject: [PATCH] Update Store.getIndexOfElementID to take isCollapsed into account --- src/devtools/store.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devtools/store.js b/src/devtools/store.js index 844d7e9b07..a764394184 100644 --- a/src/devtools/store.js +++ b/src/devtools/store.js @@ -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;