Skip to content

Commit 8b91ac5

Browse files
committed
Minor tweaks to handle HTML array separators
1 parent 9430d58 commit 8b91ac5

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

resources/views/components/tools/filter-pills/external-item.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
<x-livewire-tables::tools.filter-pills.wrapper :$filterKey :$filterPillData x-data="filterPillsGeneric('{{ $filterKey }}', '{{ $filterPillsSeparator }}', true)" >
55
{{ $filterPillData->getTitle() }}:
66
<div class="flex flex-col space-y-2" >
7-
<span x-text="localFilterPillValues"></span>
7+
<span x-html="localFilterPillValues"></span>
88
</div>
99
</x-livewire-tables::tools.filter-pills.wrapper>

resources/views/components/tools/filter-pills/item.blade.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@
33
<x-livewire-tables::tools.filter-pills.wrapper :$filterKey :$filterPillData :shouldWatch="true">
44
{{ $filterPillData->getTitle() }}:
55

6-
{{ $filterPillData->getValueFromPillData() }}
6+
@if(is_array($filterPillValues = $filterPillData->getPillValue()))
7+
@foreach($filterPillValues as $filterPillValue)
8+
{{ $filterPillValue }}{!! !$loop->last ? $separator : '' !!}
9+
@endforeach
10+
@else
11+
{{ $filterPillValues }}
12+
@endif
713

814
</x-livewire-tables::tools.filter-pills.wrapper>
915

0 commit comments

Comments
 (0)