How can I track clearing of <capture-file> component?

<capture-file> component has only on-capture, but it doesn’t call in the case of clearing value of this component (when I click on cross button inside <capture-file>). I need to track all field changes (file was added and was removed), how can I implement it?

Thanks!

The on-capture function is only called when a file is selected. To detect if the file was removed, a separate function will need to be called through a button press or similar. We have noted the feedback that having an on-change function available on the capture-file component would be the most ideal for your requirements.