wire-elements/modal

Scroll doesn't work after modal is closed

Closed this issue · 3 comments

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.

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

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

image

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.