I have javascript function that listens to any change in value made to coral-FileUpload element on the cq dialog.
$('coral-FileUpload').on('change', (event) => {
// my code
});
The above code works fine when any asset is dropped from DAM. However, it does not detect any change when the 'clear' button is clicked.
You can write this: