Skip to content

Fix shadow block deselecting main block during multiselect#142

Open
LappiLappland wants to merge 1 commit into
mit-cml:mainfrom
LappiLappland:fix/shadow-blocks
Open

Fix shadow block deselecting main block during multiselect#142
LappiLappland wants to merge 1 commit into
mit-cml:mainfrom
LappiLappland:fix/shadow-blocks

Conversation

@LappiLappland

Copy link
Copy Markdown

The basics

The details

Resolves

Fixes #139

Proposed Changes

Added filtering for shadow blocks during selection

Reason for Changes

Selecting shadow block should select its parent. Since during drag selection both parent and shadow block might end up inside the selection, we may end up calling update on the same block twice without any way to track if it was checked already. It's best if we just filter out shadow blocks early

Test Coverage

This is only multiselect behaviour's. Added 2 tests:

  1. shift clicking on shadow block should select parent
  2. adding shadow block to existing multiselection should add its parent

Documentation

N/A

Additional Information

N/A

@mjgallag mjgallag requested review from mjgallag May 24, 2026 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Issues with shadow blocks selection

1 participant