F
Filamentβ€’16mo ago
Tin

Issues with Multiselect

Quick question, should my selected options in Multiselect contain a small X icon to remove the selection?
11 Replies
Tin
TinOPβ€’16mo ago
Tin
TinOPβ€’16mo ago
Tin
TinOPβ€’16mo ago
Aparently if I remove the placeholder selection, the icons for removing the actual selection also gets removed
Tin
TinOPβ€’16mo ago
Idk if this is a bug or not But I would like to have an option to remove the placeholder option and also to remove my multiselect selections πŸ˜„
Lara Zeus
Lara Zeusβ€’16mo ago
it's there! πŸ€”
Tin
TinOPβ€’16mo ago
Can you add this to your Select ->selectablePlaceholder(false) and check if it's there after you add it
Lara Zeus
Lara Zeusβ€’16mo ago
umm interesting
Tin
TinOPβ€’16mo ago
Yup I guess it's intended It is the same as in V2
Lara Zeus
Lara Zeusβ€’16mo ago
found this
@if ($canSelectPlaceholder)
<option value="">
@if (! $isDisabled)
{{ $getPlaceholder() }}
@endif
</option>
@endif
@if ($canSelectPlaceholder)
<option value="">
@if (! $isDisabled)
{{ $getPlaceholder() }}
@endif
</option>
@endif
in the select.blade.php component
Tin
TinOPβ€’16mo ago
I guess I get the point, If you have a placeholder, then you can remove the selected item if in single select mode. But when in multiselect, the placeholder option does not actualy show So I guess that is ok
Lara Zeus
Lara Zeusβ€’16mo ago
IDK πŸ€” I think I should be able to deselect items but not selecting the placeholder
Want results from more Discord servers?
Add your server