Skip to content
This repository was archived by the owner on Aug 4, 2024. It is now read-only.

Commit bec6290

Browse files
committed
Fixes an issue on some browsers where the copy button adds a trailing space to the end of the password
1 parent dc281e3 commit bec6290

File tree

1 file changed

+1
-1
lines changed
  • src/Lithnet.Laps.Web/Lithnet.Laps.Web/Views/Lap

1 file changed

+1
-1
lines changed

src/Lithnet.Laps.Web/Lithnet.Laps.Web/Views/Lap/Show.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
@Html.Raw(Model.HtmlPassword)
2525
</div>
2626
<span id="inputGroupAppend" class="input-group-append">
27-
<button id="copy-button" type="button" data-clipboard-target="#pwd">
27+
<button id="copy-button" type="button" data-clipboard-text="@Model.Password">
2828
<i class="far fa-copy"></i>
2929
</button>
3030
</span>

0 commit comments

Comments
 (0)