We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e52fe9f commit ca4daa8Copy full SHA for ca4daa8
1 file changed
packages/devtools-components/src/tree.js
@@ -818,14 +818,14 @@ class Tree extends Component {
818
return;
819
}
820
821
- const { relatedTarget } = nativeEvent;
+ const { explicitOriginalTarget } = nativeEvent;
822
823
// Only set default focus to the first tree node if the focus came
824
// from outside the tree (e.g. by tabbing to the tree from other
825
// external elements).
826
if (
827
- relatedTarget !== this.treeRef &&
828
- !this.treeRef.contains(relatedTarget)
+ explicitOriginalTarget !== this.treeRef &&
+ !this.treeRef.contains(explicitOriginalTarget)
829
) {
830
this._focus(traversal[0].item);
831
0 commit comments