Modal built with alpinejs only working after page refresh in Firefox #3823
Replies: 2 comments 6 replies
-
What's the interaction that you do with these? |
Beta Was this translation helpful? Give feedback.
-
When you click the "See how it works" button a modal opens and a video should start playing automatically. You can then close the modal by clicking outside the modal or the "Close video" button. All this works perfectly fine in Chrome and Safari both locally and in production and I've just realised it also does so in Firefox when I test it locally - but the video won't start playing when in production in Firefox only - the modal opens and closes, but nothing happens inside it, unless I refresh my page and then the video does start playing. I've updated my code to include the JS I'm using as well. Any suggestions...? Thank you again! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi folks!
I have a modal on my page which was built using Alpinejs. When you click the "See how it works" button a modal opens and a video should start playing automatically. You can then close the modal by clicking outside the modal or the "Close video" button.
All this works perfectly fine in Chrome and Safari both locally and in production and it also does so in Firefox when I test it locally - but the video won't start playing when in production in Firefox only - the modal opens and closes, but nothing happens inside it, unless I refresh my page and then the video does start playing.
Is there anything in particular I should to ensure it loads correctly in Firefox without the need of a page refresh?
Here's my code for this specific section within the page:
HTML
JS
CSS
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions