F
Filamentβ€’2y 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β€’2y ago
Tin
TinOPβ€’2y ago
Tin
TinOPβ€’2y ago
Aparently if I remove the placeholder selection, the icons for removing the actual selection also gets removed
Tin
TinOPβ€’2y 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β€’2y ago
it's there! πŸ€”
Tin
TinOPβ€’2y ago
Can you add this to your Select ->selectablePlaceholder(false) and check if it's there after you add it
Lara Zeus
Lara Zeusβ€’2y ago
umm interesting
Tin
TinOPβ€’2y ago
Yup I guess it's intended It is the same as in V2
Lara Zeus
Lara Zeusβ€’2y 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β€’2y 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β€’2y ago
IDK πŸ€” I think I should be able to deselect items but not selecting the placeholder

Did you find this page helpful?