Skip to content

Commit

Permalink
Add Livewire key to file upload to prevent DOM issues (#1236)
Browse files Browse the repository at this point in the history
  • Loading branch information
alecritson authored Sep 1, 2023
1 parent 7e6a50a commit 8d8bd97
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div>
@livewire('hub.components.fieldtypes.file', [
@livewire('hub.components.fieldtypes.file', [
'maxFiles' => $field['configuration']['max_files'] ?? 1,
'signature' => $field['signature'],
'selected' => $field['data'] ?? []
])
], key($field['signature']))
</div>

1 comment on commit 8d8bd97

@vercel
Copy link

@vercel vercel bot commented on 8d8bd97 Sep 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.