Add a comment
Dan Abramov committed
Apr 8, 2019 at 14:39 UTC
6538e7141a2e47be1ef6c21bb1dc3f250d9f88e3
1 file changed
+2
src/devtools/views/Components/Element.js
+2
@@ -87,6 +87,8 @@ export default function ElementView({ index, style, data }: Props) {
87
);
88
89
const rendererID = store.getRendererIDForElement(element.id) || null;
90
+ // Individual elements don't have a corresponding leave handler.
91
+ // Instead, it's implemented on the tree level.
92
const handleMouseEnter = useCallback(() => {
93
if (rendererID !== null) {
94
bridge.send('highlightElementInDOM', {