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

Commit 1297629

Browse files
committed
Prevent placeholder from being shown twice
1 parent ad776dd commit 1297629

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ class="{{ $buttonClass() }}"
99
@if (isset($attributes['labelledby'])) aria-labelledby="{{ $attributes['labelledby'] }}" @endif
1010
@if ($disabled) disabled @endif
1111
>
12-
<template x-if="! hasSelection()">
13-
<span class="custom-select__placeholder text-blue-gray-500 block truncate" x-text="placeholder"></span>
14-
</template>
12+
<span class="custom-select__placeholder text-blue-gray-500 block truncate" x-show="! hasSelection()" x-text="placeholder"></span>
1513

1614
<div class="custom-select__display flex truncate items-center" x-show="hasSelection()" wire:ignore>
1715
@if ($buttonDisplay)

0 commit comments

Comments
 (0)