I’d have to go through the code to remember the exact behavior, and whether or not there’s a bug in it but, going from memory, the intended logic is:
- All items in a group must be moved to the same layer so there are no edge cases around selecting a group. For example, selecting a group, but part of the group is on a hidden layer that cannot be selected.
- If any of the items are on the current active layer, they should all be moved to that layer.
- If none of the items being grouped are on the active layer, it should move everything to the layer of the first item in the selection list.
I’d actually prefer that the logic be to move everything to the active layer if that seems more clear, and there’s no other edge case that doesn’t come to mind right now.