wire-elements / modal

Livewire component that provides you with a modal that supports multiple child modals while maintaining state.
MIT License
1.09k stars 129 forks source link

Scroll doesn't work after modal is closed #430

Closed alexfleites closed 3 months ago

alexfleites commented 3 months ago

For some reason after the modal window is closed, the parent is unresponsive.. even scroll doesn't work. Have to refresh the page to go back normally.

Any help would be appreciated.

PhiloNL commented 3 months ago

Please verify and make sure you are not loading Alpine twice. Alpine is already included in Livewire.

alexfleites commented 3 months ago

Well, I have only this in my component. BTW I am using livewire-modal in the Filament resource.

image

PhiloNL commented 3 months ago

I would recommend injecting the modal in your layout once instead of including it inside another component. Having multiple instances of the base modal component will result in issues as well. This might also be the issue causing the scroll to no longer work.