TextEntry placeholder not working for related models
This should show "None" but is blank.
I can see in the state get's wrapped, which is causing it to be [ 0 => "" ] which resolves to true when deciding whether or not to show the placeholder.
is this a bug?
3 Replies
Not sure, but this sounds like a bug or so. You could make a PR.
As a quick solution you could use formatStateUsing or something
I too had this issue, but have just upgraded to Filament v3.2.31 and the issue appears to have been resolved in one of the recent versions - I am now seeing the correct placeholder('...') text appear in tables for related model fields that are empty (NULL).