Detach from Actor removes all child component attachments

Hello

I am trying to detacttch and then reattach weapons on to my player character. I can easily attach the weapon, detach and then pick up another weapon but attempting to reattach the actor using the same function but the the weapon stays where it is. The player character still gets the reference so it is able to fire the weapon but the mesh, colliders etc do not snap to the target as they should.

Also it seems that all the component attachments on the weapon actor seems to have been removed when the actor is detached. Unsure exactly why this is but I have a feeling this is the main issue around this.

Some extra infomation, the weapon mesh is a skeletonmesh with simulate physics enabled. When attaching the weapon I set simulate physics to false.

Here is the weapon in the outliner in play. Not been attached before

Here it is when attached to the player

Here is is after I detach the weapon

Here is how I attach the weapons to the player

Here is how I detach the weapon from the player (In the Gun actor but called with a IA in the player character)

Using UE 5.3