mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 00:20:04 +01:00
[DevTools] Fix host instance highlighting (#34661)
This commit is contained in:
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}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user