Form in Livewire component not displaying grid
Below is the form I am trying to render, but the form is not honouring the grid columns. The form is rendering all the fields vertically as full width inputs.
When I use the same structure in the admin panel, it renders as expected, but not in a frontend livewire component. Any ideas?
12 Replies
I have added the duplicate First and Last fields to demonstrate the SECTION element which DOES render - it is just the GRID that doesn't.
Ignore the issue about the field labels being hidden, that is another story...
Can I see the code that you actually want for it? Not the duplicated code, etc.. that you were talking about
Hi Andrew - The duplication I am referring to is that I have two First and Last name fields in the form. The provided code should display BOTH versions of the first and last name fields in two columns, but as you can see in the screenshot, it is only showing in one column.
Can I see your Livewire component?
Sorry the blade Livewire view I mean
It shouldn’t matter but can you try the “<x-filament-panels::form>” component instead and and see if anything changes?
No change
Yeah I mean if it isn’t showing the fields in the grid then it’s a bug…
Submit an issue for it on GitHub if there isn’t one already
Thanks Andrew - just confirming, there isn’t any CSS or anything that I might be missing that gets injected when the form is in an PANEL, that isn’t included when it is just included in a regular Livewire component?
No a grid in the panel should work the same for the form builder
Take a look at the css in the browser of the form in the panel versus livewire and see if anything looks different that may be causing it
Thanks for your help - I’ll have a look further and will submit a bug report if I can’t find anything