Skip to content

Commit ca4daa8

Browse files
nchevobbejasonLaster
authored andcommitted
1 parent e52fe9f commit ca4daa8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • packages/devtools-components/src

packages/devtools-components/src/tree.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -818,14 +818,14 @@ class Tree extends Component {
818818
return;
819819
}
820820

821-
const { relatedTarget } = nativeEvent;
821+
const { explicitOriginalTarget } = nativeEvent;
822822

823823
// Only set default focus to the first tree node if the focus came
824824
// from outside the tree (e.g. by tabbing to the tree from other
825825
// external elements).
826826
if (
827-
relatedTarget !== this.treeRef &&
828-
!this.treeRef.contains(relatedTarget)
827+
explicitOriginalTarget !== this.treeRef &&
828+
!this.treeRef.contains(explicitOriginalTarget)
829829
) {
830830
this._focus(traversal[0].item);
831831
}

0 commit comments

Comments
 (0)