We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48f4d72 commit 01b8a42Copy full SHA for 01b8a42
lib/algora_web/live/home_live.ex
@@ -824,7 +824,16 @@ defmodule AlgoraWeb.HomeLive do
824
</main>
825
</div>
826
827
- <.dialog id="video-modal" show={false} class="w-screen h-screen lg:max-w-none p-[5rem]">
+ <.dialog
828
+ id="video-modal"
829
+ show={false}
830
+ class="w-screen h-screen lg:max-w-none p-[5rem]"
831
+ on_cancel={
832
+ %JS{}
833
+ |> JS.set_attribute({"src", ""}, to: "#video-modal-iframe")
834
+ |> JS.set_attribute({"title", ""}, to: "#video-modal-iframe")
835
+ }
836
+ >
837
<.dialog_content class="flex items-center justify-center">
838
<iframe
839
id="video-modal-iframe"
0 commit comments