-
Notifications
You must be signed in to change notification settings - Fork 12.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Search: Preserves search filters when navigating to another page #67021
Conversation
Navigating to dashboard from search should not clear the filters
// Clear some filters only if we're not opening a search item in a new tab | ||
if (!e.altKey && !e.ctrlKey && !e.metaKey) { | ||
this.setState({ tag: [], starred: false, sort: undefined, query: '', folderUid: undefined }); | ||
} | ||
// if (!e.altKey && !e.ctrlKey && !e.metaKey) { | ||
// this.setState({ tag: [], starred: false, sort: undefined, query: '', folderUid: undefined }); | ||
// } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should just remove all these comments, otherwise it works as expected 👍
@khushijain21 could you merge grafana:main back to your branch? This might solve the issue with failing tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice 👏
Which issue(s) does this PR fix?:
This PR fixes #65710
Who is this feature for?
Navigating to dashboard from search should not clear the filters