ovh / ovh-ui-kit

OVHcloud UI Kit - Master UI Framework
https://ovh.github.io/ovh-ui-kit
BSD 3-Clause "New" or "Revised" License
58 stars 20 forks source link

feat(components.file): add an onremove callback on file input #847

Closed MaximeBajeux closed 6 months ago

MaximeBajeux commented 7 months ago

Add an onremove callback on file input

Ref: UK-196

Description of the Change

Currently, there isn't a trigger to know if a user remove an attachment on the file input component. To handle that. I add a onRemove callback to call when an attachment is removed.

Benefits

Be able to check the attachment removal without using a watch or watchCollection

Possible Drawbacks

Applicable Issues

ovh-cds commented 7 months ago

CDS Report yarn-build#2906.0 ✘