fix: Don't select shadow blocks on click (#9538)

* fix: Don't select shadow blocks on click

* test: Verify that clicked shadow blocks do not become selected

* chore: Run formatter
This commit is contained in:
Aaron Dodson
2026-01-13 14:23:08 -08:00
committed by GitHub
parent a4d97c2f18
commit 43ea4161c0
2 changed files with 39 additions and 5 deletions
+1 -3
View File
@@ -773,13 +773,11 @@ export class Gesture {
this.setStartWorkspace(ws);
this.mostRecentEvent = e;
if (!this.startBlock && !this.startBubble && !this.startComment) {
if (!this.targetBlock && !this.startBubble && !this.startComment) {
// Ensure the workspace is selected if nothing else should be. Note that
// this is focusNode() instead of focusTree() because if any active node
// is focused in the workspace it should be defocused.
getFocusManager().focusNode(ws);
} else if (this.startBlock) {
getFocusManager().focusNode(this.startBlock);
}
this.doStart(e);