-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fileUpload onRemove clashes with onChange [FC-1234] (#2464)
* chore: call onChange in case of fileupload * chore: added flushsync * chore: update file upload onRemove clashes with onchange * Update .changeset/modern-geckos-relate.md Co-authored-by: Saurabh Daware <[email protected]> * chore: add note in change log --------- Co-authored-by: Saurabh Daware <[email protected]>
- Loading branch information
1 parent
964ee14
commit 455e965
Showing
2 changed files
with
16 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
'@razorpay/blade': patch | ||
--- | ||
|
||
fix(FileUpload): fileupload on remove clashes with onchage | ||
|
||
> [!NOTE] | ||
> | ||
> Previously, onChange did not provide an updated value when a file was removed. Now, when a file is removed from FileUpload, onChange will return the updated value. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters