fix: Add Livewire scripts to app layout for Alpine.js dropdown
- Add @livewireStyles to head - Add @livewireScripts before closing body tag - Fixes dropdown menu not working in admin panel
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
<link href="https://fonts.bunny.net/css?family=figtree:400,500,600&display=swap" rel="stylesheet" />
|
||||
<!-- Scripts -->
|
||||
@vite(['resources/css/app.css', 'resources/js/app.js'])
|
||||
@livewireStyles
|
||||
</head>
|
||||
<body class="font-sans antialiased">
|
||||
<div class="min-h-screen bg-gray-100">
|
||||
@@ -31,5 +32,7 @@
|
||||
{{ $slot }}
|
||||
</main>
|
||||
</div>
|
||||
|
||||
@livewireScripts
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user