diff options
| author | winter | 2025-05-09 16:30:07 +0100 |
|---|---|---|
| committer | winter | 2025-05-09 16:30:07 +0100 |
| commit | 5f5a1323eda22d7771ec10c364d41650d7f2814f (patch) | |
| tree | b994a0b2780d6cd363474e643c021e4fd69c2ca0 /templates/note/reply_form.php | |
| parent | e3c7df69dbb62c80ec58bf75cfc55f498f04219a (diff) | |
fix mention buttons in reply form closing the form
Diffstat (limited to 'templates/note/reply_form.php')
| -rw-r--r-- | templates/note/reply_form.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/templates/note/reply_form.php b/templates/note/reply_form.php index 6272c16..388b243 100644 --- a/templates/note/reply_form.php +++ b/templates/note/reply_form.php @@ -22,10 +22,11 @@ $scopeOptions = match ($note->privacy->scope) { $selectedScope = $note->privacy->scope->value; ?> <form class="noteReplyForm" id="replyForm-<?= $note->id ?>" _=" - on htmx:afterOnLoad - send toggle to #interactButton-reply-<?= $note->id ?> - then trigger update on #liveTimelineUpdater - on toggle or htmx:afterOnLoad toggle @hidden" hidden hx-post="/fragment/note/<?= $note->id ?>/reply" + on htmx:afterOnLoad if event.detail.elt is me + send toggle to [me, #interactButton-reply-<?= $note->id ?>] + trigger update on #liveTimelineUpdater + end + on toggle toggle @hidden" hidden hx-post="/fragment/note/<?= $note->id ?>/reply" hx-disabled-elt="#replySubmitButton-<?= $note->id ?>" hx-swap="outerHTML" hx-target="this"> <div class="row summaryAndContent"> <label for="replyContent-<?= $note->id ?>"><?= __('writeReply.label') ?></label> |
