Skip to content

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.

3 participants