1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-13 06:32:40 +01:00

Fix Livewire form data passing

This commit is contained in:
Benjamin Beganović 2021-07-15 10:07:38 +02:00
parent 97885557bd
commit 7d48fe433a

View File

@ -10,7 +10,7 @@
</p> </p>
</div> </div>
<form wire:submit.prevent="handleSubmit(Object.fromEntries(new FormData($event.target)))"> <form id="required-client-info-form" wire:submit.prevent="handleSubmit(Object.fromEntries(new FormData(document.getElementById('required-client-info-form'))))">
@foreach($fields as $field) @foreach($fields as $field)
@if(!array_key_exists('filled', $field)) @if(!array_key_exists('filled', $field))
@component('portal.ninja2020.components.general.card-element', ['title' => $field['label']]) @component('portal.ninja2020.components.general.card-element', ['title' => $field['label']])