From 8d8bd97cf29ded3a130db07b9d4b6c341222a5ec Mon Sep 17 00:00:00 2001 From: Alec Ritson Date: Fri, 1 Sep 2023 10:33:20 +0100 Subject: [PATCH] Add Livewire key to file upload to prevent DOM issues (#1236) --- .../admin/resources/views/field-types/file/view.blade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/admin/resources/views/field-types/file/view.blade.php b/packages/admin/resources/views/field-types/file/view.blade.php index 8b7329be06..03abcc1fd8 100644 --- a/packages/admin/resources/views/field-types/file/view.blade.php +++ b/packages/admin/resources/views/field-types/file/view.blade.php @@ -1,7 +1,7 @@
- @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']))