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

[release-8.x branch] Don't include blacklight js twice when using Sprockets #3372

Merged
merged 1 commit into from
Oct 21, 2024

Conversation

sandbergja
Copy link
Contributor

As @mamrey noted on #3263, this can lead to a user being unable to add bookmarks, since the relevant eventlistener is added twice, so every time the user clicks to add a bookmark, the toggle function is run twice, essentially doing nothing.

This bug (and fix) only affect Sprockets -- when using Importmap or Propshaft, this branch of the view isn't even reached.

As @mamrey noted on #3263, this can lead to a user being unable to add bookmarks,
since the relevant eventlistener is added twice, so every time the user clicks to
add a bookmark, the toggle function is run twice, essentially doing nothing.

This bug (and fix) only affect Sprockets -- When using Importmap or Propshaft, this
branch of the view isn't even reached.
@sandbergja sandbergja marked this pull request as ready for review October 21, 2024 20:42
@jcoyne jcoyne merged commit 8c7e132 into release-8.x Oct 21, 2024
13 checks passed
@jcoyne jcoyne deleted the no-double-event-listener branch October 21, 2024 21:29
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