The weird thing is that it works perfectly locally.
But in production https://manul-shop-production.up.railway.app/profile (you can login under b@b email using 'bbbbbb' password) it doesn't.
"Delete account" button. Here is the code:
` <x-danger-button
class="btn btn-danger"
x-data=""
x-on:click.prevent="$dispatch('open-modal', 'confirm-user-deletion')"
>{{ __('Delete Account') }}</x-danger-button>
<x-modal name="confirm-user-deletion" :show="$errors->userDeletion->isNotEmpty()" focusable>
.......some code
</x-modal>`
Other buttons on this page using alpine.js work both locally and in production... But this one does nothing in production...