Skip to content

Commit

Permalink
[Discover] set actual moveFocus flag
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaanj committed Jun 23, 2021
1 parent b44f856 commit 8253e98
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,9 @@ export function DiscoverChart({
}, [state.hideChart]);

const toggleHideChart = useCallback(() => {
stateContainer.setAppState({ hideChart: !state.hideChart });
chartRef.current.moveFocus = true;
const newHideChart = !state.hideChart;
stateContainer.setAppState({ hideChart: newHideChart });
chartRef.current.moveFocus = !newHideChart;
}, [state, stateContainer]);

const onChangeInterval = useCallback(
Expand Down

0 comments on commit 8253e98

Please sign in to comment.