❗ Alpine.js not working inside PowerGrid, but works fine in other Blade views #1914
nguyenhoang24695
started this conversation in
BUG
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Livewire PowerGrid version
6.3.1
Livewire version
3.6.3
Laravel version
12.9.2
Which PHP version are you using?
PHP 8.4
Which Theme are you using?
Tailwind
Have you published the resource files and customized them? (php artisan vendor:publish)
Yes
What is the problem?
I'm currently using Alpine.js across my Laravel project. In regular Blade views (outside of PowerGrid components), Alpine directives like x-data, x-show, and x-on:click work perfectly.
However, when I try to use Alpine.js inside a PowerGrid table component, none of the Alpine functionality works. It's as if Alpine is not initializing or being recognized inside the PowerGrid-rendered area.

Code snippets
public function actions(VisaApplication $row): array
{
// Class name of the model to pass to the delete modal
$className = VisaApplication::class;
////Blade
How do you expect it to work?
Alpine.js should be initialized properly inside PowerGrid-rendered HTML so we can use reactive behaviors within buttons, modals, dropdowns, etc. inside PowerGrid rows or headers.
Please confirm (incomplete submissions will not be addressed)
Beta Was this translation helpful? Give feedback.
All reactions