Closed d2x closed 2 years ago
Thank you very much for this description and how to reproduce it. However, the error is related to Alpine's dual startup since it was installed via Jetstream,
The error that happens in the console is this:
To fix it set 'null' in alpine_cdn in livewire-powergrid.php config
'alpinejs_cdn' => null,
`
@luanfreitasdev thank you very much. That does indeed solve the problem.
When using powergrid with Laravel Jetstream, the modal popup overlay wrapper doesn't get removed when a modal closes. I've narrowed this down to the
@powerGridScripts
but have not debugged this further.This issue renders the entire site unusable after interacting with a modal until refreshing the page.
Versions:
laravel/framework v9.18.0 laravel/jetstream v2.8.5 power-components/livewire-powergrid v3.1.0
Step to reproduce:
curl -s https://laravel.build/demo | bash
cd demo && ./vendor/bin/sail up -d
./vendor/bin/sail composer require laravel/jetstream
./vendor/bin/sail artisan jetstream:install livewire --teams
./vendor/bin/sail composer require power-components/livewire-powergrid
npm install && npm run dev
./vendor/bin/sail artisan migrate
@powerGridStyles
and@powerGridScripts
toresources/views/layouts/app.blade.php
:Now you can test this using the Team user role modal by inviting a user, and changing their role:
http://0.0.0.0/register
http://0.0.0.0/teams/1
Add
http://0.0.0.0/register
http://0.0.0.0:8025/
and use the accept invite link in the incognito or separate browser.http://0.0.0.0/teams/1
page and click the role name next to the invited team member.If you comment out the
@powerGridScripts
fromresources/views/layouts/app.blade.php
, this issue does not occur and Jetstream modals function properly.