Oh, yes, it’s my big pain! Figma should fix it!
This issue comes to all components in the prototype that you can collapse/expand or open/close. This happens when you are customizing the child component, if in the prototype you will close/collapse and after opening it again - it will show you the content of the parent component.
Here is just one way how I’m fixing this now - I’m recreating the component directly in the file with a prototype.
Oh man… You mean to start the component from scratch? That is close to impossible. The component has so many variants and behaviors that I can’t recreate. I don’t wanna unlink from master and lose all that, specially because it’s going to make the development work way harder.