prefix() not working for a Select form field?
I'm trying to add a prefix to a select form field as per:-
https://filamentphp.com/docs/3.x/forms/fields/select#adding-affix-text-aside-the-field
Suffix shows up fine but not the prefix...
My code:-
Forms\Components\Select::make( 'dollars' )
->prefix('US$')
->suffix('per day')
->options([
'1' => '50',
'2' => '100',
'3' => '200',
'4' => '500',
]),
Output is as per the attached image... any ideas anyone?17 Replies
Does prefix show up without suffix? This seems like a bug to me.
No - taking off the suffix makes no difference the prefix is still missing
Does any other prefix configuration work? Like prefixAction() or prefixIcon()?
Same issue here https://discord.com/channels/883083792112300104/1146825766219296799
No - nothing happens for prefixIcon() nor prefixAction() as well
the same here
all prefix not working for some reasone
the hidden class was flex
Can you test it on a TextInput and verify that it is not output in the html for selects. It could just be a styling issue with the select.
I am working with a text input
the code from
wrapper.blade.php
GitHub
Comparing v3.0.37...v3.0.38 Β· filamentphp/filament
A collection of beautiful full-stack components for Laravel. The perfect starting point for your next app. Using Livewire, Alpine.js and Tailwind CSS. - Comparing v3.0.37...v3.0.38 Β· filamentphp/fi...
Please submit a bug.
ok or pr? but idk why it's changed
Pr is good too, please reference the change that broke it in the PR
ok
Thank you
done
ππππ
it turns out I needed a suffix not prefix
I always mix them
Thanks for doing that!
looks like it's getting fixed already https://github.com/filamentphp/filament/pull/8199/files
GitHub
Show input icons by sakanjo Β· Pull Request #8199 Β· filamentphp/fila...
Changes have been thoroughly tested to not break existing functionality.
New functionality has been documented or existing documentation has been updated to reflect changes.
Visual changes are ex...
hidden
still there