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

Fixed SelectionManager deselection bug #6569

Merged

Conversation

mheiman
Copy link
Collaborator

@mheiman mheiman commented May 19, 2022

Addresses #6556

When selecting items for merging, deselecting a selected item would cause the Merge Works button to disappear, even if multiple other items were still selected.

Technical

This was a simple logic error. The SelectionManager action was only being calculated on select, not on deselect. I shifted the relevant block of code out of the if (selected) clause it was in and everything works correctly.

Testing

Select and deselect some items and note that the action button and its corresponding link update appropriately.

Stakeholders

@cdrini @mheiman

@cdrini cdrini self-assigned this May 19, 2022
@cdrini cdrini added the On testing.openlibrary.org This PR has been deployed to testing.openlibrary.org for testing label May 19, 2022
Copy link
Collaborator

@cdrini cdrini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested selecting/deselecting things and confirmed working! Nice, @mheiman !

@cdrini cdrini merged commit 7a1ca82 into internetarchive:master May 19, 2022
@jimchamp jimchamp removed the On testing.openlibrary.org This PR has been deployed to testing.openlibrary.org for testing label Apr 2, 2024
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.

3 participants