fix: Edit button shows hidden form — added onclick to remove hidden class
- Edit button now reveals the form before loading content - Without this, the form was loaded into a hidden div and invisible
This commit is contained in:
parent
5f5f2be75b
commit
0f39f3dc24
1 changed files with 1 additions and 0 deletions
|
|
@ -95,6 +95,7 @@
|
||||||
hx-get="/events/{{.ID}}/edit"
|
hx-get="/events/{{.ID}}/edit"
|
||||||
hx-target="#create-event-form"
|
hx-target="#create-event-form"
|
||||||
hx-swap="innerHTML"
|
hx-swap="innerHTML"
|
||||||
|
onclick="document.getElementById('create-event-form').classList.remove('hidden')"
|
||||||
style="font-size: 0.75rem;">
|
style="font-size: 0.75rem;">
|
||||||
Edit
|
Edit
|
||||||
</button>
|
</button>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue