This repository was archived by the owner on Oct 20, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 88 <label class =" block" >
99 @includeWhen ($label , ' splade::form.label' , [' label' => $label ] )
1010
11- <div class =" flex rounded-md shadow-sm" >
11+ <div class =" flex rounded-md border border-gray-300 shadow-sm" >
1212 @if ($prepend )
13- <span :class =" { 'opacity-50': inputScope.disabled }" class =" inline-flex items-center px-3 rounded-l-md border border-r -0 border-gray-300 bg-gray-50 text-gray-500" >
13+ <span :class =" { 'opacity-50': inputScope.disabled && @json ( ! $alwaysEnablePrepend ) }" class =" inline-flex items-center px-3 rounded-l-md border border-t-0 border-b-0 border-l -0 border-gray-300 bg-gray-50 text-gray-500" >
1414 {!! $prepend ! !}
1515 </span >
1616 @endif
1717
1818 <input {{ $attributes -> except ([' v-if' , ' v-show' , ' class' ])-> class ([
19- ' block w-full border-gray-300 focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50 disabled:opacity-50' ,
19+ ' block w-full border-0 focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50 disabled:opacity-50 disabled:bg-gray-50 disabled:cursor-not-allowed ' ,
2020 ' rounded-md' => ! $append && ! $prepend ,
2121 ' min-w-0 flex-1 rounded-none' => $append || $prepend ,
2222 ' rounded-l-md' => $append && ! $prepend ,
2929 />
3030
3131 @if ($append )
32- <span :class =" { 'opacity-50': inputScope.disabled }" class =" inline-flex items-center px-3 rounded-r-md border border-l -0 border-gray-300 bg-gray-50 text-gray-500" >
32+ <span :class =" { 'opacity-50': inputScope.disabled && @json ( ! $alwaysEnableAppend ) }" class =" inline-flex items-center px-3 rounded-r-md border border-t-0 border-b-0 border-r -0 border-gray-300 bg-gray-50 text-gray-500" >
3333 {!! $append ! !}
3434 </span >
3535 @endif
Original file line number Diff line number Diff line change @@ -34,6 +34,8 @@ public function __construct(
3434 public string $ prepend = '' ,
3535 public string $ append = '' ,
3636 public string $ help = '' ,
37+ public bool $ alwaysEnablePrepend = false ,
38+ public bool $ alwaysEnableAppend = false ,
3739 ) {
3840 if ($ date === false && $ this ->type === 'date ' && static ::$ defaultFlatpickrOptions !== false ) {
3941 $ this ->date = $ date = true ;
You can’t perform that action at this time.
0 commit comments