diff options
Diffstat (limited to 'templates/user_mention_pill.php')
| -rw-r--r-- | templates/user_mention_pill.php | 5 |
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> |
