Merge pull request #1972 from w3cj/allow-tab-in-textarea
bug: fix allowTab logic
This commit is contained in:
		@@ -4,7 +4,7 @@
 | 
			
		||||
            e.preventDefault();
 | 
			
		||||
 | 
			
		||||
            e.target.setRangeText(
 | 
			
		||||
                '\t',
 | 
			
		||||
                '  ',
 | 
			
		||||
                e.target.selectionStart,
 | 
			
		||||
                e.target.selectionStart,
 | 
			
		||||
                'end'
 | 
			
		||||
@@ -56,7 +56,7 @@
 | 
			
		||||
 | 
			
		||||
        </div>
 | 
			
		||||
    @else
 | 
			
		||||
        <textarea @keydown.tab="{{ $allowTab }} && handleKeydown" placeholder="{{ $placeholder }}" {{ $attributes->merge(['class' => $defaultClass]) }}
 | 
			
		||||
        <textarea {{ $allowTab ? '@keydown.tab=handleKeydown' : '' }} placeholder="{{ $placeholder }}" {{ $attributes->merge(['class' => $defaultClass]) }}
 | 
			
		||||
            @if ($realtimeValidation) wire:model.debounce.200ms="{{ $id }}"
 | 
			
		||||
        @else
 | 
			
		||||
    wire:model={{ $value ?? $id }}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user