-
Notifications
You must be signed in to change notification settings - Fork 328
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Hide search result checkboxes instead of disabling them (#6568)
When a follow up query to a search result was submitted we've disabled the checkboxes of the previous search result because changing the selection wouldn't impact the already submitted follow up query (but also from an implementation perspective we wouldn't actually be able to target the follow up input). But because we store which results have been selected in memory only, rerendering the search results would show all checkboxes again as selected (albeit disabled). This might be confusing to the user. We would have to persist the UI state somewhere/somehow but there is no good place for this atm. So to (hopefully) reduce the confusion we simply hide the checkboxes when the user cannot interact with the search results anymore. Fixes https://linear.app/sourcegraph/issue/PROD-420/context-boxes-re-select-after-query-submission ## Test plan Manually tested locally via web demo.
- Loading branch information
Showing
2 changed files
with
44 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters