-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[Discover] Fix reselecting another surrounding document #117567
[Discover] Fix reselecting another surrounding document #117567
Conversation
*/ | ||
useEffect(() => { | ||
if (prevAppState.current) { | ||
prevAppState.current = 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.
if the anchor changes in the url, resetting the prevAppState automatically triggers a reload of all documents
Pinging @elastic/kibana-data-discovery (Team:DataDiscovery) |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
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.
Tested in Chrome on Mac OS X, works as expected!
💚 Build Succeeded
Metrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: cc @kertal |
…) (#117996) Co-authored-by: Matthias Wilhelm <matthias.wilhelm@elastic.co>
…) (#117997) Co-authored-by: Matthias Wilhelm <matthias.wilhelm@elastic.co>
Summary
When clicking on
View surrounding documents
from a context view, the link didn't behave like it should. New documents were loaded, but the anchor was is no longer highlighted.This PR fixes this, so you should be able to
Fixes #116644
Checklist