Skip to content

Commit 2dcf483

Browse files
authoredJan 5, 2021
Use readonly instead of @keydown.prevent
1 parent 5bbfcb9 commit 2dcf483

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎stubs/livewire/resources/views/api/api-token-manager.blade.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@
105105
</div>
106106

107107
<x-jet-input
108-
x-ref="plaintextToken" @keydown.prevent="" @showing-token-modal.window="setTimeout(() => $refs.plaintextToken.select(), 250)"
109-
type="text" :value="$plainTextToken" class="mt-4 bg-gray-100 px-4 py-2 rounded font-mono text-sm text-gray-500 w-full"
108+
x-ref="plaintextToken" @showing-token-modal.window="setTimeout(() => $refs.plaintextToken.select(), 250)"
109+
type="text" readonly :value="$plainTextToken" class="mt-4 bg-gray-100 px-4 py-2 rounded font-mono text-sm text-gray-500 w-full"
110110
autofocus autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"
111111
/>
112112
</x-slot>

0 commit comments

Comments
 (0)
Please sign in to comment.