Open oussama166 opened 2 months ago
Did you try to use the default slot without <x-slot></x-slot>
?
I will try it now thank you
@alexmanase Sorry but always the same issue :
Can you show me your code?
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
Dropdown Component Slots Not Working in Laravel Blade with Alpine.js
Summary
The dropdown component in Laravel Blade is not displaying its content correctly when using named slots for the trigger and dropdown content. The issue seems related to the interaction between Blade components and Alpine.js.
Steps to Reproduce
Create a Dropdown Component:
resources/views/components/dropdown.blade.php
Use the Dropdown Component:
resources/views/layouts/navigation.blade.php
Expected Behavior
x-slot
.Actual Behavior
Additional Information
Environment
Screenshots or Logs