Skip to content
This repository was archived by the owner on Mar 18, 2025. It is now read-only.

Commit 4f1d034

Browse files
committed
Change x-if to x-show
1 parent 8ed8fb2 commit 4f1d034

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

resources/views/partials/custom-select-button.blade.php

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,14 @@ class="{{ $buttonClass() }}"
1313
<span class="custom-select__placeholder" x-text="placeholder"></span>
1414
</template>
1515

16-
<template x-if="hasSelection()">
17-
<div class="custom-select__display" wire:ignore>
18-
@if ($buttonDisplay)
19-
{{-- user has opted to customize the "selected text" on the button --}}
20-
{!! $buttonDisplay !!}
21-
@else
22-
<span x-html="buttonDisplay"></span>
23-
@endif
24-
</div>
25-
</template>
16+
<div class="custom-select__display" x-show="hasSelection()" wire:ignore>
17+
@if ($buttonDisplay)
18+
{{-- user has opted to customize the "selected text" on the button --}}
19+
{!! $buttonDisplay !!}
20+
@else
21+
<span x-html="buttonDisplay"></span>
22+
@endif
23+
</div>
2624

2725
@if ($optional && $clearIcon)
2826
<button x-on:click="clear()"

0 commit comments

Comments
 (0)