1
1
<div
2
+ x-cloak
2
3
class =" relative mt-1"
3
4
x-data =" SimpleSelect({
4
5
dataSource: {{ is_array ($options ) ? json_encode ($options ) : json_encode ([]) } } ,
@@ -41,7 +42,7 @@ class="relative mt-1"
41
42
}"
42
43
{{ $attributes -> class (' block w-full border border-gray-300 rounded-md shadow-sm focus:ring-0 focus:ring-gray-400 focus:border-gray-400 sm:text-sm sm:leading-5' )-> only (' class' ); } }
43
44
>
44
- <div x-cloak x- show =" !selected || selected.length === 0" class =" flex flex-wrap" >
45
+ <div x-show =" !selected || selected.length === 0" class =" flex flex-wrap" >
45
46
<div class =" text-gray-800 rounded-sm w-full truncate px-2 py-0.5 my-0.5 flex flex-row items-center" >
46
47
<div class =" w-full px-2 truncate" x-text =" placeholder" >  ; </div >
47
48
<div x-show =" !disabled" x-bind:class =" { 'cursor-pointer': !disabled }" class =" h-6" x-on:click.prevent.stop =" toggleSelect()" >
@@ -50,7 +51,7 @@ class="relative mt-1"
50
51
</div >
51
52
</div >
52
53
@isset ($attributes [' multiple' ] )
53
- <div x-cloak x- show =" selected && typeof selected === 'object' && selected.length > 0" class =" flex flex-wrap space-x-1" >
54
+ <div x-show =" selected && typeof selected === 'object' && selected.length > 0" class =" flex flex-wrap space-x-1" >
54
55
<template x-for =" (value, index) in selected" :key =" index" >
55
56
<div class =" text-gray-800 rounded-full truncate bg-gray-300 px-2 py-0.5 my-0.5 flex flex-row items-center" >
56
57
{{-- Invisible inputs for standard form submission values --}}
@@ -80,7 +81,7 @@ class="w-6"
80
81
</template >
81
82
</div >
82
83
@else
83
- <div x-cloak x- show =" selected" class =" flex flex-wrap" >
84
+ <div x-show =" selected" class =" flex flex-wrap" >
84
85
<div class =" text-gray-800 rounded-sm w-full truncate px-2 py-0.5 my-0.5 flex flex-row items-center" >
85
86
{{-- Invisible input for standard form submission of values --}}
86
87
<input type =" text" :name =" name" x-model =" selected" :required =" required" style =" display : none ;" />
@@ -134,8 +135,8 @@ class="absolute z-10 w-full py-1 overflow-auto text-base bg-white shadow-lg roun
134
135
tabindex =" -1"
135
136
role =" listbox"
136
137
>
137
- <div x-cloak x- show =" Object.values(options).length == 0 && search.toString().trim() == ''" x-text =" noOptions" class =" px-2 py-2" ></div >
138
- <div x-cloak x- show =" Object.values(options).length == 0 && search.toString().trim() != ''" x-text =" noResult" class =" px-2 py-2" ></div >
138
+ <div x-show =" Object.values(options).length == 0 && search.toString().trim() == ''" x-text =" noOptions" class =" px-2 py-2" ></div >
139
+ <div x-show =" Object.values(options).length == 0 && search.toString().trim() != ''" x-text =" noResult" class =" px-2 py-2" ></div >
139
140
<template x-for =" (option, index) in Object.values(options)" :key =" index" >
140
141
<li
141
142
:tabindex =" index"
0 commit comments