F
Filament11mo ago
jals65

Textarea doesn't appear in my component when V3 update

I have a component when I add a text area by this way:
public function getCommentComponent(): ComponentContainer
{
return ComponentContainer::make($this->getLivewire())
->parentComponent($this)
->components([
Textarea::make($this->getCommentComponentName())
])
->reactive();
}
public function getCommentComponent(): ComponentContainer
{
return ComponentContainer::make($this->getLivewire())
->parentComponent($this)
->components([
Textarea::make($this->getCommentComponentName())
])
->reactive();
}
and this is printed in the view by: {{ $getCommentComponent() }} This works correctly in v2, but when I update to v3, the text area doesn't appear. use Filament\Forms\Components\Textarea;
Solution:
Ow, i found the problem. I have the text area into a <x-filament::modal> in the x-slot name="subheading". This slot don't exists in v3. I replace this slot as a simple div into the modal component. So now, the text area is printed correctly....
Jump to solution
4 Replies
jals65
jals6511mo ago
Somebody can help me?
Somebody
Somebody11mo ago
how about {{ $form->getCommentComponent }}
jals65
jals6511mo ago
Undefined variable $form
Solution
jals65
jals6511mo ago
Ow, i found the problem. I have the text area into a <x-filament::modal> in the x-slot name="subheading". This slot don't exists in v3. I replace this slot as a simple div into the modal component. So now, the text area is printed correctly.
Want results from more Discord servers?
Add your server