Merge pull request #2006 from grahamhealy20/add-mono-font-to-textarea

Text areas use monospaced fonts with spellcheck disabled by default
This commit is contained in:
Andras Bacsai
2024-04-26 15:16:59 +02:00
committed by GitHub
3 changed files with 4 additions and 3 deletions

View File

@@ -56,7 +56,7 @@
</div>
@else
<textarea {{ $allowTab ? '@keydown.tab=handleKeydown' : '' }} placeholder="{{ $placeholder }}" {{ $attributes->merge(['class' => $defaultClass]) }}
<textarea {{ $allowTab ? '@keydown.tab=handleKeydown' : '' }} placeholder="{{ $placeholder }}" {{ !$spellcheck ? 'spellcheck=false' : '' }} {{ $attributes->merge(['class' => $defaultClass]) }}
@if ($realtimeValidation) wire:model.debounce.200ms="{{ $id }}"
@else
wire:model={{ $value ?? $id }}