Skip to content

Commit

Permalink
Add missing type attribute to clipboard copy buttons
Browse files Browse the repository at this point in the history
This fixes an issue where clicking the "Copy to clipboard" button for the group
invite links would trigger a page reload.
  • Loading branch information
robertknight committed Nov 22, 2024
1 parent 2ca0928 commit 74181b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion h/templates/activity/search.html.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,8 @@
value="{{ group.url }}">
<button class="group-invite__clipboard-button"
data-ref="button"
title="Copy to clipboard">
title="Copy to clipboard"
type="button">
{{ svg_icon('copy_to_clipboard', 'group-invite__clipboard-image') }}
</button>
</div>
Expand Down
3 changes: 2 additions & 1 deletion h/templates/includes/share_widget.html.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
readonly>
<button class="share-widget-link__btn"
data-ref="button"
title="Copy to clipboard">
title="Copy to clipboard"
type="button">
{{ svg_icon('copy_to_clipboard', 'share-widget-link__btn--copy share-widget-action') }}
</button>
</div>
Expand Down

0 comments on commit 74181b0

Please sign in to comment.