Repository navigation
fix: keep selection action bar open while blocks remain selected - #13353
Merged
Merged
Conversation
Actions that leave the multi-selection active (set tags, set/unset property) closed the selection top bar on dialog close. Restore the bar after the dialog closes when blocks are still selected; it stays closed when the action cleared the selection (copy, cut, delete). Fixes logseq/db-test#1230 Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Contributor
Author
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
Contributor
Author
|
Tested end-to-end in the web app ( Before (master): select 3 blocks → Set property → close dialog → action bar disappears while blocks remain selected (logseq/db-test#1230 repro). After (this PR): same flow → action bar re-appears after the dialog closes while blocks stay selected. Copy still clears the selection and closes the bar as before.
Repro steps
|
devin-ai-integration Bot
added a commit
that referenced
this pull request
Oct 1, 2026
) Actions that leave the multi-selection active (set tags, set/unset property) closed the selection top bar on dialog close. Restore the bar after the dialog closes when blocks are still selected; it stays closed when the action cleared the selection (copy, cut, delete). Fixes logseq/db-test#1230 Co-authored-by: Tienson Qin <[email protected]> Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
devin-ai-integration Bot
added a commit
that referenced
this pull request
Oct 8, 2026
) Actions that leave the multi-selection active (set tags, set/unset property) closed the selection top bar on dialog close. Restore the bar after the dialog closes when blocks are still selected; it stays closed when the action cleared the selection (copy, cut, delete). Fixes logseq/db-test#1230 Co-authored-by: Tienson Qin <[email protected]> Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
devin-ai-integration Bot
added a commit
that referenced
this pull request
Oct 8, 2026
) Actions that leave the multi-selection active (set tags, set/unset property) closed the selection top bar on dialog close. Restore the bar after the dialog closes when blocks are still selected; it stays closed when the action cleared the selection (copy, cut, delete). Fixes logseq/db-test#1230 Co-authored-by: Tienson Qin <[email protected]> Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes logseq/db-test#1230.
With multiple blocks selected, running an action that keeps the selection (set tags, set property, unset property) opened a dialog whose
on-dialog-closeunconditionally fired:editor/hide-action-bar— the top bar disappeared while the blocks stayed selected, forcing a deselect/re-select cycle for each additional action.Adds
restore-action-barinfrontend.components.selection: hide the bar, then calleditor-handler/show-action-bar!, which re-shows it only when a selection still exists. Actions that clear the selection (copy, cut/delete, add-comment) still close the bar as before.Link to Devin session: https://app.devin.ai/sessions/8c63498005cb42aab2be35a63617782c
Open in Devin Desktop: https://app.devin.ai/desktop/session/8c63498005cb42aab2be35a63617782c?variant=devin
Requested by: @tiensonqin