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

Multiple imports of jquery modal #309

Open
AndrewGene opened this issue May 9, 2023 · 1 comment
Open

Multiple imports of jquery modal #309

AndrewGene opened this issue May 9, 2023 · 1 comment

Comments

@AndrewGene
Copy link

My team sometimes imports libraries on their standalone pages that are already in a master page (they forget to look). With jquery.modal this causes an issue when trying to hit the auto-generated closes button (clicking outside the modal or hitting escape still work). You can test for the existence of your library before you initialize it by adding the code from this SO answer...

https://stackoverflow.com/a/400943/817625

Wrapping your code with this would prevent any errors in the future.

@AndrewGene
Copy link
Author

Love the lib by the way.

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

No branches or pull requests

1 participant