Adjust animation handling for show/hide

This commit is contained in:
Matt-Yorkley
2022-01-31 09:55:14 +00:00
parent 7c0a631f7f
commit 5f02ab79d4

View File

@@ -35,11 +35,10 @@ export default class extends Controller {
this.backgroundTarget.style.display = "block"
this.modalTarget.style.display = "block"
document.querySelector("body").classList.add("modal-open")
setTimeout(() => {
this.modalTarget.classList.add("in")
this.backgroundTarget.classList.add("in")
document.querySelector("body").classList.add("modal-open")
})
window._paq?.push(['trackEvent', 'Signin/Signup', 'Login Modal View', window.location.href])