You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi.
Cool plugin, but i found out that navigating through Laravel Livewire wire:navigate, the teleportation, after a window resize, is performed as many times as the page (where the component is) has been navigated.
The text was updated successfully, but these errors were encountered:
I found the solution.
I believe the issue is caused by a re-run of x-data when navigating through wire:navigate, so just remove the onResize listener when livewire is navigating (new HTML is about to swapped onto the page).
Just add this code in Portal.js before "window.Alpine.nextTick(() => this.onResize(mediaQuery));" document.addEventListener('livewire:navigating', () => mediaQuery.removeEventListener('change', this.onResize));
Hi.
Cool plugin, but i found out that navigating through Laravel Livewire wire:navigate, the teleportation, after a window resize, is performed as many times as the page (where the component is) has been navigated.
The text was updated successfully, but these errors were encountered: