Problem with form fields

Hello. I have a problem with TinyEditor when I turn on the action modal a second time without reloading the page.

I have the page divided into sections, each section has its own class with a form definition e.g.:
https://gist.github.com/kamilzeliasz/8aa697b72e363409e6c64f71d7fa32ab

Definition of section editing action:
https://gist.github.com/kamilzeliasz/d41fe1f0b9bf333240f4dd5286966e6f

I attach a video showing the problem. I noticed that the problem only occurs if there is a FileUpload in the form.
In addition, if the definitions in the action in $this->form put an array with values from getForm from HeroSection, everything behaves correctly. The problem is when we use $section = app($record->type);.
Could someone guide me what the error is due to? Thanks.
Gist
Section definition. GitHub Gist: instantly share code, notes, and snippets.
Gist
Edit section action. GitHub Gist: instantly share code, notes, and snippets.
Was this page helpful?