1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Merge pull request #6273 from beganovich/v5-588

(v5) Fix Livewire form data passing
This commit is contained in:
Benjamin Beganović 2021-07-15 10:08:13 +02:00 committed by GitHub
commit 3e62c2a6b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,7 +10,7 @@
</p>
</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)
@if(!array_key_exists('filled', $field))
@component('portal.ninja2020.components.general.card-element', ['title' => $field['label']])