Skip to content

Commit

Permalink
Allow customization of placeholder (#11)
Browse files Browse the repository at this point in the history
Localization broke the ability to customize the placeholder. Moving the placeholder being set to after localization restores this functionality.
  • Loading branch information
RoccoHoward authored Sep 20, 2024
1 parent d8131a7 commit 7a5c33b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion resources/views/upload.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ class="{{ $attributes->get('class') }}"
load();
},
},
labelIdle: @js($placeholder),
required: @js($required),
disabled: @js($disabled),
});
Expand All @@ -78,6 +77,8 @@ class="{{ $attributes->get('class') }}"
pond.setOptions(@js($pondProperties));
pond.setOptions({ labelIdle: @js($placeholder) });
pond.addFiles(files)
pond.on('addfile', (error, file) => {
if (error) console.log(error);
Expand Down

0 comments on commit 7a5c33b

Please sign in to comment.