Confused about form grid columns and column span.

I have a form that doesn't seem to be acting right and I'm not sure why. I'm sure it's something I'm doing wrong or not understanding. Looking at the Filament code (trait HasColumns and trait CanSpanColumns), it appears to me that by default there are 1 columns in a form and then at the lg breakpoint it becomes 2 columns and by default it's always column span 1 unless changed for all breakpoints. Why then, in my form group (the second group) where I've specified 2 columns at the small breakpoint do I still need to explicitely tell it to only span one column. My code is attached (screenshot because of code folding).
No description
No description
No description
1 Reply
morty
mortyOP2w ago
First image is my code, second is how the form behaves without the explicit ->columnSpan(1) and the third is with the explicit ->columnSpan(1) Figured it out. On the Section component itself is the following:
protected function setUp(): void
{
parent::setUp();

$this->columnSpan('full');
}
protected function setUp(): void
{
parent::setUp();

$this->columnSpan('full');
}

Did you find this page helpful?