FileUpload removeUploadedFile

On a create form; when a user presses the "X" in filepond to delete an uploaded file field (with mutliple uploads enabled), the page seems to directly call removeUploadedFile on Filament\Forms\Components\BaseFileUpload. This updates the state after a user interaction; but does not trigger afterStateUpdated() as far as I can tell.

  1. Is there a specific reason it does not?
  2. I need to run a piece of code to update other parts of the form is a file removed this way, it does not seem possible right now. Should a call to afterStateUpdated be added or a specific callback? Or did I miss something?
Was this page helpful?