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?
0 Replies