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 Magic Select binding for Editions DataTable #9888

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

schu96
Copy link
Contributor

@schu96 schu96 commented Sep 18, 2024

Addresses #9853 Task 5

Fix

Technical

Initializes the ILE/SelectionManager classes before the Editions DataTable to allow the ILE to bind the click events and add class names to the relevant DOM elements.

Prevents the Editions DataTable from re-initialization with .isDataTable method.

Utilizes the drawCallback option for DataTables to remove visual inconsistencies when a user selects editions from multiple pages, clicks on clear selection, and re-navigates to a page that had a previously selected edition by checking the sessionStorage object.

Testing

Sign in with the admin account and navigate to a work that has >3 editions (the more the better).

Verify that the magic select editions beyond the first page of the Editions Table.

Press the Clear Selection button within the magic select toolbar on the bottom of the page.

Navigate back to the pages where the editions were previously selected. The magic select classes and styling should not be present anymore.

Screenshot

2024-09-18.12-05-56.mp4

Stakeholders

@cdrini

@schu96 schu96 marked this pull request as ready for review September 18, 2024 19:10
@schu96 schu96 changed the title Change init order of ILE and editions datatable for magic select Fix Magic Select binding for Editions DataTable Sep 18, 2024
@cdrini cdrini self-assigned this Sep 23, 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.

2 participants