I just created a fresh Laravel 12 project using the Livewire starter kit and added Flux UI.
Steps I followed:
laravel new my-app
# Selected starter kit:
> livewire
Then I followed the Flux UI documentation for the modal component: https://fluxui.dev/components/modal
Here’s the code I added:
<flux:modal.trigger name="edit-profile">
<flux:button>Edit profile</flux:button>
</flux:modal.trigger>
<flux:modal name="edit-profile" class="md:w-96">
...
</flux:modal>
The modal opens correctly, and it closes if I click outside the modal, but the built-in close button (X) does nothing. I also checked the docs and tried re-generating assets with npm run dev, but the behavior is the same.
Am I missing a configuration step for Flux UI or Livewire?
Edit: Flux modal already has a built-in close button and logic for closing, so I’m not adding a custom one.