Issue with Layer.move(targetLayer, ElementPlacement)

Hi there :wave:

I am busy trying to create a layer-movement functionality. The user creates a layer, but this kept on placing the new layers all the way to the top of the hierarchy. Thus, I need to move it to the selected layer. I give the user the ability to move the newly created layer above, under or within (for groups only) relative to the selected layer.

The documentation states that the second parameter is that placement option.

I have passed along the values: ‚ÄúplaceInside‚ÄĚ, ‚ÄúplaceBefore‚ÄĚ and ‚ÄúplaceAfter‚ÄĚ (the only ones that matter, in this case).
When I want to create a layer above a group, it places it within it. Placing it under and within works just fine.

eg.

I select Before (‚ÄúKid‚ÄĚ is the group layer I select to move relative to)
The values of the relative layer and the placement options are correct
Yet it still places the new layer within

Am I doing something wrong?

Thank you for the help!