Disable guide/group highlight in owners tree mode
Brian Vaughn committed
Jun 1, 2019 at 17:49 UTC
c1989448f46cb41b92c78ae4fb92e08a2e4157ca
1 file changed
+5
-1
src/devtools/views/Components/Guideline.js
+5
-1
@@ -19,7 +19,7 @@ export default function Guideline(_: {||}) {
19
const { lineHeight } = useContext(SettingsContext);
20
const store = useContext(StoreContext);
21
const treeFocused = useContext(TreeFocusedContext);
22
- const { selectedElementID } = useContext(TreeStateContext);
22
+ const { ownerID, selectedElementID } = useContext(TreeStateContext);
23
24
const subscription = useMemo(
25
() => ({
@@ -75,6 +75,10 @@ export default function Guideline(_: {||}) {
75
);
76
const data = useSubscription<Data | null, Store>(subscription);
77
78
+ if (ownerID !== null) {
79
+ return null;
80
+ }
81
+
82
if (data === null) {
83
return null;
84
}