You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The bug in method 'onupdatefiles' in filepond component properties, this function only takes the first initial values for any state in the code, and when the state value updated, the changes are not recognized inside the method.
Reproduction
Declare any state hook at the top of the component, for example in 'RegisterationForm' component i declared a boolean state 'formFlag' with initial value true.
Use the filepond component inside the 'RegisterationForm' component with property method 'onupdatefiles' in which you are console log the 'formFlag'.
At any point in the code do some change on the 'formFlag' state value into false, and then trigger 'onupdatefiles' method in filepond by deleting files for example, You will notice that the value will remain true and it's not recognizing the updates on the state, it only takes the initial value.
Environment
- Device: Dell
- OS: Windows 11
- Browser:Chrome Version 122.0.6261.129
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Have you updated FilePond and its plugins?
Describe the bug
The bug in method 'onupdatefiles' in filepond component properties, this function only takes the first initial values for any state in the code, and when the state value updated, the changes are not recognized inside the method.
Reproduction
Environment
The text was updated successfully, but these errors were encountered: