aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/user_mention_pill.php
diff options
context:
space:
mode:
authorwinter2025-03-16 02:04:04 +0000
committerwinter2025-03-16 02:04:04 +0000
commitdd4d47bde45d20954129ba256696bf12c3826cdd (patch)
tree83029bead8fbd1fe7206961b8d0145b1400f6f38 /templates/user_mention_pill.php
parent23ddb01a20788da2c98c4d5bb9bd271ceff532c8 (diff)
fix hx-target everywhere :<
Diffstat (limited to 'templates/user_mention_pill.php')
-rw-r--r--templates/user_mention_pill.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/templates/user_mention_pill.php b/templates/user_mention_pill.php
index 3b9a018..9cc3ad8 100644
--- a/templates/user_mention_pill.php
+++ b/templates/user_mention_pill.php
@@ -4,7 +4,8 @@ $type ??= 'add';
<?php if ($type == 'add'): ?>
- <button class="inlinePill" type="button" hx-get="/fragment/note/mentionPill" hx-disabled-elt="this" hx-swap="outerHTML">
+ <button class="inlinePill" type="button" hx-get="/fragment/note/mentionPill" hx-disabled-elt="this" hx-swap="outerHTML"
+ hx-target="this">
<span class="pillIcon material-symbols add"></span>
<span class="pillText"><?= __('writeNote.mentions.add.action') ?></span>
</button>
@@ -12,7 +13,7 @@ $type ??= 'add';
<?php elseif ($type == 'edit'): ?>
<form class="inlinePill nopanel <?= ($invalid ?? false) ? 'invalid' : '' ?>" hx-get="/fragment/note/mentionPill"
- hx-disabled-elt="this" hx-swap="outerHTML">
+ hx-disabled-elt="this" hx-swap="outerHTML" hx-target="this">
<span class="pillIcon material-symbols alternate-email"></span>
<input type="text" name="handle" class="pillInput" value="<?= $value ?? '' ?>"
placeholder="<?= __('writeNote.mentions.placeholder') ?>" required autofocus>