Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for Select All button in DetailsList #2678

Merged

Conversation

patrikhellgren
Copy link
Contributor

There is an issue with how the SelectionZone in the search results container is implemented together with the DetailsList internal selection handling. Clicking Select All in the DetailsList selects all items in the list but does not update selectedKeys in the templateContext.

This is also the issue behind #2289 so that should also be fixed after this.

This fix adds the data-selection-all-toggle=true property to the div element containing the Select All button which makes the search results container SelectionZone also trigger on the button click.

@sonarcloud
Copy link

sonarcloud bot commented Jan 5, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@wobba
Copy link
Collaborator

wobba commented Jan 8, 2023

Thank you.

@wobba wobba merged commit cef2372 into microsoft-search:develop Jan 8, 2023
@patrikhellgren patrikhellgren deleted the fix-detailslist-select-all branch February 21, 2023 09:49
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.

None yet

2 participants