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 3c0bf1a commit fac7134Copy full SHA for fac7134
packages/app/src/app/pages/Dashboard/Sidebar/index.js
@@ -18,7 +18,7 @@ import { TEAMS_QUERY } from '../queries';
18
19
class Sidebar extends React.Component {
20
handleSearchFocus = () => {
21
- history.push('/dashboard/search');
+ history.push('/dashboard/search', { from: 'sandboxSearchFocused' });
22
};
23
24
handleSearchChange = e => {
packages/app/src/app/pages/Dashboard/index.js
@@ -52,7 +52,11 @@ class Dashboard extends React.Component {
52
} = this.props;
53
const { showSidebar } = this.state;
54
55
- history.listen(() => {
+ history.listen(({ state }) => {
56
+ if (!!state && state.from === 'sandboxSearchFocused') {
57
+ return;
58
+ }
59
+
60
this.onRouteChange();
61
});
62
0 commit comments