-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Trigger Modal using JS #1056
Comments
Maybe make a hidden button and trigger a click event on the button? |
+1 |
Connected with the global library name issue: #1125 |
You can actually do some javascript trikery with this. const backdrop = document.getElementsByClassName("modal-backdrop")[0];
backdrop.classList.add("show");
const modal = document.getElementById("myModal");
modal.classList.add("show"); worked for me. hope it does for you too. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
Thanks for the wonderful library. I was going through the documentation but I couldn't find any way to trigger the modal with JS.
I have a project coming in where the front-end will be in Vue3. Is there any way I can achieve it?
The text was updated successfully, but these errors were encountered: