diff --git a/src/devtools/views/Components/InspectedElementContext.js b/src/devtools/views/Components/InspectedElementContext.js index 1aed0dd63e..5d4bacb28b 100644 --- a/src/devtools/views/Components/InspectedElementContext.js +++ b/src/devtools/views/Components/InspectedElementContext.js @@ -126,6 +126,9 @@ function InspectedElementContextController({ children }: Props) { // We'll poll for an update in the response handler below. sendRequest(); + // Update the $r variable. + bridge.send('selectElement', { id: selectedElementID, rendererID }); + const onInspectedElement = ( inspectedElementResponse: InspectedElementResponse | null ) => {