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

[main] Import and export modalForm.js so it is included in the rollup build #3467

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

sandbergja
Copy link
Contributor

Before this commit, modalForm.js was not included in the rollup build, which meant that applications with forms in the modal would not work properly, even if they had the required data-blacklight-modal=trigger

To confirm the fix, you can run:

npm install && npm run prepare && grep triggerFormSelector app/assets/javascripts/blacklight/blacklight.js

If you get a match, that means that the file is included in the javascript build and applications can use it.

See also #3466, which backports this fix to release-8.x.

Before this commit, modalForm.js was not included in the rollup build, which meant
that applications with forms in the modal would not work properly, even if they
had the required data-blacklight-modal=trigger

To confirm the fix, you can run:
npm install && npm run prepare && grep triggerFormSelector app/assets/javascripts/blacklight/blacklight.js

If you get a match, that means that the file is included in the javascript build and applications can use it.

Co-authored-by: Christina Chortaria <[email protected]>
Copy link
Member

@christinach christinach left a comment

Choose a reason for hiding this comment

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

Thank you @sandbergja ! @christinach 🍄 🐬

@christinach christinach merged commit 9880cc9 into main Dec 10, 2024
13 checks passed
@christinach christinach deleted the import-modal-form-main branch December 10, 2024 22: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