Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@dragonfly4
Copy link
Contributor

@dragonfly4 dragonfly4 commented Oct 9, 2024

Version: 1.2.3
PHP: 8.2
Laravel 11

Issue #10 introduced a bug for the labelIdle property.

The value from the localization file was overwritten by the second call to setOptions, causing it to always display the default English value.

Drag & Drop your files or <span class="filepond--label-action"> Browse </span>

pond.setOptions(@js($pondLocalizations));
pond.setOptions(@js($pondProperties));
pond.setOptions({ labelIdle: @js($placeholder) });

This PR checks whether a custom placeholder value was passed from the component in order to determine if the second call should be triggered.

Sébastien Morel added 2 commits October 9, 2024 19:39
Check if placeholder was passed from livewire component
@dragonfly4 dragonfly4 changed the title Fix labelIdle localization bugf Fix labelIdle localization bug to show correct label Oct 9, 2024
@dragonfly4 dragonfly4 marked this pull request as ready for review October 9, 2024 17:52
@riasvdv riasvdv merged commit 38396a3 into spatie:main Oct 18, 2024
1 check passed
@riasvdv
Copy link
Contributor

riasvdv commented Oct 18, 2024

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants