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

Restore modal events that were dropped in Blacklight 8 #3408

Merged
merged 3 commits into from
Oct 25, 2024
Merged

Conversation

cbeer
Copy link
Member

@cbeer cbeer commented Oct 25, 2024

I understand why the bootstrap-triggered events were removed with the switch to HTML5-native modals, but I'm not sure why the loaded.blacklight.blacklight-modal. This was a very useful extension point for plugins and other applications, and requiring all of them to set up mutation observers (e.g projectblacklight/blacklight_range_limit#249) isn't very satisfying.

I also added show + hide events (the <dialog> emits its own close event) to restore some other useful extension points too.

@jcoyne jcoyne merged commit d6435c5 into main Oct 25, 2024
13 checks passed
@jcoyne jcoyne deleted the modal-events branch October 25, 2024 15:19
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