UnderOath777
Help with Filament Modal Component
I'm using the Filament modal to open a chatbot interface defined in a custom Livewire component. I would like to scroll to the bottom of the chat interface when the modal is open. I was using the
model-opened
event to scroll to the bottom, but it's not working as I expected. It seems that modalElement.scrollHeight
is set to 0, and even if I hardcode a position in the scrollTo method, it doesn't take effect. It feels like I might have the wrong element. Does anyone have recommendations or solutions on how I can resolve this?
2 replies
Dynamic Form Component
What I'm trying to achieve is to dynamically append additional form components to the parent form. The additional form components are encapsulated in a service class, and each service class has custom form components. When a user selects the service type from the dropdown, I want to take the selected state value, instantiate that service class to retrieve its form components, and then append those to the child container.
What I did:
I was able to replace the full form, but instead, I would like to append the additional form components to the parent form if possible.
4 replies