Minor fixes to select component to render HTML helpers

This commit is contained in:
Deon George 2024-12-04 18:05:37 +11:00
parent 8c8283503f
commit fd780d1756
2 changed files with 4 additions and 7 deletions

View File

@ -22,6 +22,6 @@
</span>
</div>
@isset($helper)
<span class="input-helper">{{ $helper }}</span>
<span class="input-helper">{!! html_entity_decode($helper) !!}</span>
@endif
</div>

View File

@ -1,6 +1,6 @@
<x-form.base {{ $attributes }}>
<input type="hidden" id="{{ $name }}_disabled" name="{{ $name }}" value="" disabled>
<select class="form-select @error((! empty($old)) ? $old : $name) is-invalid @enderror" id="{{ $id ?? $name }}" name="{{ $name }}" @required(isset($required)) @disabled(isset($disabled))>
<select style="width: 80%" class="form-select @error((! empty($old)) ? $old : $name) is-invalid @enderror" id="{{ $id ?? $name }}" name="{{ $name }}" @required(isset($required)) @disabled(isset($disabled))>
@if(empty($value) || isset($addnew) || isset($choose))
<option value=""></option>
@isset($addnew)
@ -51,12 +51,9 @@
dropdownAutoWidth: true,
width: 'style',
allowClear: true,
placeholder: '',
placeholder: '{{ $placeholder ?? '' }}',
@isset($addvalues)
tags: true,
@isset($placeholder)
placeholder: '{{ $placeholder }}',
@endisset
@endisset
});
});