Hi Everyone,
I created a dynamic component in my project by inheriting from dam/components/scene7/dynamicmedia using sling:resourceSuperType to utilize the core functionality of the Dynamic Media component. Initially, everything worked as expected; I added custom fields to the dialog, and after dragging and dropping the Dynamic Media component onto my page, I could see the dialog changes reflecting these custom fields. The resource type correctly pointed to my component (projectName/components/dynamicmedia).
However, after adding an image or video to the Dynamic Media component, I encountered an issue: my custom fields disappeared from the dialog, and the resource type reverted to /libs/dam/components/scene7/dynamicmedia. As a result, I lost my custom fields, and the component began pointing to the core component from which I originally inherited.
Could you please help me resolve this issue?