mirror of
https://github.com/facebook/react.git
synced 2026-02-21 19:31:52 +00:00
[DevTools] Fix host instance highlighting (#34661)
This commit is contained in:
committed by
GitHub
parent
2f0649a0b2
commit
1f460f31ee
@@ -115,7 +115,7 @@ export default function setupHighlighter(
|
||||
const nodes = renderer.findHostInstancesForElementID(id);
|
||||
if (nodes != null) {
|
||||
for (let i = 0; i < nodes.length; i++) {
|
||||
const node = nodes[0];
|
||||
const node = nodes[i];
|
||||
if (node === null) {
|
||||
continue;
|
||||
}
|
||||
@@ -164,7 +164,7 @@ export default function setupHighlighter(
|
||||
const nodes = renderer.findHostInstancesForElementID(id);
|
||||
if (nodes != null) {
|
||||
for (let i = 0; i < nodes.length; i++) {
|
||||
const node = nodes[0];
|
||||
const node = nodes[i];
|
||||
if (node === null) {
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -66,7 +66,7 @@ export default function SuspenseBreadcrumbs(): React$Node {
|
||||
key={id}
|
||||
className={styles.SuspenseBreadcrumbsListItem}
|
||||
aria-current={selectedSuspenseID === id}
|
||||
onPointerEnter={highlightHostInstance.bind(null, id)}
|
||||
onPointerEnter={highlightHostInstance.bind(null, id, false)}
|
||||
onPointerLeave={clearHighlightHostInstance}>
|
||||
<button
|
||||
className={styles.SuspenseBreadcrumbsButton}
|
||||
|
||||
Reference in New Issue
Block a user