Skip to content

Commit

Permalink
fix Tailwind 2.x multiselect styling
Browse files Browse the repository at this point in the history
  • Loading branch information
tanthammar committed Dec 9, 2020
1 parent c4955fa commit d1f23fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/components/multiselect.blade.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div x-data="{ open: false, field: {{ json_encode($value) }} }">
<div x-cloak x-show="!field.length" class="form-select my-1" x-on:click="open = ! open">
<div x-cloak x-show="!field.length" type="text" class="form-select my-1" x-on:click="open = ! open">
{{ $field->placeholder ?? 'Select an option ...' }}
</div>
<select x-cloak x-show="open || field.length" x-model="field" x-on:click.away.stop="open = false" multiple @foreach($options() as $key => $value) {{$key}}="{{$value}}" @endforeach>
Expand Down

0 comments on commit d1f23fe

Please sign in to comment.