Skip to content

Fix locked choices being cleared by checkbox shortcuts - #728

Open
HocVoNgThai wants to merge 1 commit into
magmax:mainfrom
HocVoNgThai:fix/locked-checkbox-shortcuts
Open

HocVoNgThai wants to merge 1 commit into
magmax:mainfrom
HocVoNgThai:fix/locked-checkbox-shortcuts

Conversation

@HocVoNgThai

Copy link
Copy Markdown

Checkbox reset and invert shortcuts can uncheck locked choices, even though Space and Left preserve them.

For example, with choices=["Core", "Optional"], locked=["Core"] and default=["Optional"], pressing Ctrl+R or Tab/Ctrl+I and then Enter currently returns []. This change keeps Core selected and returns ["Core"], while clearing the optional choice.

Preserve locked choices in both bulk-selection handlers. Includes a compact regression covering reset and invert with an optional choice already selected.

Closes #727

This branch has not been deployed

No deployments
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.

Locked checkbox choices can be cleared by reset and invert

1 participant