Skip to content

Fix unintended auto-selection in multiselect filters#10834

Open
HachemJ wants to merge 1 commit into
aces:29.0-releasefrom
HachemJ:FixAutoSelectSingleValueMultiSelect
Open

Fix unintended auto-selection in multiselect filters#10834
HachemJ wants to merge 1 commit into
aces:29.0-releasefrom
HachemJ:FixAutoSelectSingleValueMultiSelect

Conversation

@HachemJ

@HachemJ HachemJ commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Brief summary of changes

This PR fixes an auto-selection issue affecting pages with multiselect filters that contain only one option. This filter is automatically selected when the page is first loaded, even though no selection was made by the user. The current workaround is to click “Clear Filters” each time the page is opened.

This change disables the auto selection by overriding the autoSelect field to autoSelect={false} because by default it's true.

Testing instructions (if applicable)

One of the pages affected by this issue that I caught on the 29.0-release branch:

  1. Go to 'Biobank' -> 'Biospecimens'
  2. Verify that the URL is not 'https://X.loris.ca/biobank/?diagnosis=1' anymore
  3. It should be https://X.loris.ca/biobank/ instead

Link(s) to related issue(s)

@github-actions github-actions Bot added the Language: Javascript PR or issue that update Javascript code label Jul 7, 2026
@HachemJ HachemJ added the 29.0.0 - Bugs Issues found during the release testing for 29.0.0 label Jul 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

29.0.0 - Bugs Issues found during the release testing for 29.0.0 Language: Javascript PR or issue that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant