# Inserting a node breaks group

**URL:** <https://discourse.nodered.org/t/inserting-a-node-breaks-group/93135>\
**Category:** General\
**Tags:** editor, possible-bug\
**Created:** [13 November 2024 22:34 UTC](https://discourse.nodered.org/t/inserting-a-node-breaks-group/93135 "2024-11-13T22:34:33Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [13 November 2024 22:34 UTC](https://discourse.nodered.org/t/inserting-a-node-breaks-group/93135/1 "2024-11-13T22:34:33Z")

</div>

If you have some nodes in a group and drag from one of them to create a new node also in the group, the new node becomes the only member of the group.

![group](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/6/e6c17763f50508b67af72f651fb40a0e998fd452.gif)

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [13 November 2024 23:52 UTC](https://discourse.nodered.org/t/inserting-a-node-breaks-group/93135/2 "2024-11-13T23:52:01Z")

</div>

What happens if, after adding the node, you click outside the group first, then click on the group to move it?

I have a fairly good idea what's happening; the current set of selected things has gone slightly wrong, so when you drag, the other nodes in the group are left behind.

Please raise an issue.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [14 November 2024 08:51 UTC](https://discourse.nodered.org/t/inserting-a-node-breaks-group/93135/3 "2024-11-14T08:51:03Z")

</div>

> [@jbudd](#):
>
> the new node becomes the only member of the group.

I think the nodes are still in the group, it is just that they the selection is mixed up. If you click away from the new node then all is well.

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [14 November 2024 08:54 UTC](https://discourse.nodered.org/t/inserting-a-node-breaks-group/93135/4 "2024-11-14T08:54:31Z")

</div>

> [@Colin](#):
>
> I think the nodes are still in the group, it is just that they the selection is mixed up.

But if you deploy _without first clicking somewhere on the desktop_, they are no longer in the group

---

<div class="post-metadata">

**Author:** ![GogoVega](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gogovega/32/71313_2.png) [@GogoVega](https://discourse.nodered.org/u/GogoVega)\
**Post date:** [14 November 2024 09:00 UTC](https://discourse.nodered.org/t/inserting-a-node-breaks-group/93135/5 "2024-11-14T09:00:21Z")

</div>

> [@jbudd](#):
>
> But if you deploy _without first clicking somewhere on the desktop_, they are no longer in the group

Don't have this behavior.

EDIT: like Colin, clicking anywhere restores the group

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [14 November 2024 09:02 UTC](https://discourse.nodered.org/t/inserting-a-node-breaks-group/93135/6 "2024-11-14T09:02:28Z")

</div>

> [@jbudd](#):
>
> if you deploy _without first clicking somewhere on the desktop_,

I am not seeing that. After I deploy it still looks wrong, but again, clicking away restores the situation.

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [14 November 2024 09:07 UTC](https://discourse.nodered.org/t/inserting-a-node-breaks-group/93135/8 "2024-11-14T09:07:46Z")

</div>

I think you are right that it's just a presentation problem; the nodes are still in the group.

After deploying, dragging the node only moves the new node and the frame but eventually it picks up all the nodes in the group and resizes the frame as appropriate.

I'm not sure if just clicking somewhere always resolves it.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [12 February 2025 09:08 UTC](https://discourse.nodered.org/t/inserting-a-node-breaks-group/93135/9 "2025-02-12T09:08:47Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
