Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ludoguenet committed Mar 6, 2024
1 parent 283b0d3 commit c169001
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/views/homepage.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div x-data="nudge({{ Js::from(auth()->user()?->isLiked($nudge)) }})">
<article class="flex items-center justify-between text-md leading-8 text-gray-500 sm:text-lg mb-2.5">
<p>{{ $nudge->content }}</p>
<input type="text" value="{!! $nudge->code !!}" x-ref="content" class="hidden">
<textarea type="text" x-ref="content" class="hidden">{!! $nudge->code !!}</textarea>
</article>

<pre>
Expand Down Expand Up @@ -93,7 +93,7 @@
copyCode(content) {
content.select();
content.setSelectionRange(0, 99999);
navigator.clipboard.writeText(content.value);
navigator.clipboard.writeText(content.innerText);
this.resetCopySuccess();
},
Expand Down

0 comments on commit c169001

Please sign in to comment.