wire-elements / modal

Livewire component that provides you with a modal that supports multiple child modals while maintaining state.
MIT License
1.09k stars 129 forks source link

Error when i try to send an array or with an alpinejs variable #433

Closed CodeConKarim closed 3 months ago

CodeConKarim commented 3 months ago

when I try to save my form in this way or send an array in my arguments I get this error which appears :

The GET method is not supported for route livewire/update. Supported methods: POST.

<template x-for="(design,key) in designs" :key="key" >
    <a href="#" wire:click.prevent="$dispatch('openModal', {component: 'templates.share-template', arguments: { templateId: design.id, type: 'add', title: 'Share with friends'}})"
                                                class="flex items-center justify-center text-center rounded-full w-9 h-9 bg-slate-200 hover:bg-slate-400"
                                            >
</template>
<scrip>
          designs: @json($templates),
</script>

image

but when i replace design.id with 204 it's work {templateId: 204 ....}