We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f0c068 commit a60aadeCopy full SHA for a60aade
demo/lib/demo_web/live/fixtures_live/modal_rerender_title_fixture.html.heex
@@ -1,5 +1,5 @@
1
<div id="modal-rerender">
2
- <.button type="button" phx-click={Prima.Modal.open("demo-modal")}>
+ <.button type="button" phx-click={Prima.Modal.JS.open("demo-modal")}>
3
Open Modal
4
</.button>
5
@@ -15,7 +15,7 @@
15
<.modal_panel id="demo-modal-panel">
16
<div>
17
<button
18
- phx-click={Prima.Modal.close()}
+ phx-click={Prima.Modal.JS.close()}
19
testing-ref="close-button"
20
>
21
Close
@@ -26,7 +26,7 @@
26
<button id="update-title-inside" type="button" phx-click="update-modal-title">
27
Update Title
28
</button>
29
- <.button phx-click={Prima.Modal.close()} type="button">
+ <.button phx-click={Prima.Modal.JS.close()} type="button">
30
Got it
31
32
</div>
0 commit comments