Did the config select dropdown behaviour change?

Hello, I maintain several collections that have a shared "central" config. For all of them, when I drag a new node onto the palette, the new node never defaults to the already existing configuration, it always reverts to "None". I could have sworn the behavior used to be different and the default would always be a valid config node that already exists. Is this not the case? How do I change it? The problem here is that I have to select a config node, close the child, and then reopen it to see the data that it is fed from the config node. Is there anyway to fix this?

Thanks,
Vahdettin

As far as I know, a node (which uses a config node) defaults to 'none', and you need to click the '+' to create a new config and associate it to the node. This makes sense (at least to me).

If there is a use-case for a default, auto-created/auto-assigned config node, I believe it needs to be implemented by you in your node configuration code.

Pretty sure the point @Vahdettin is making is:

If there is already a config (of the correct type) (i.e. one or more already exist) why doesn't the config dropdown default to the first available config node?

I am 95% certain the config selector used to automatically pick up the first config available (in the days before the [Add] and [Edit] buttons were separated out)

I think you are right. I thought something was not right a little while ago but it wasn't till it was pointed out that I realised the issue.

Yes, Steve-Mci is correct, I'm only asking about the dropdown's default value when a valid config node already exists for the collection (created manually or otherwise)

@Vahdettin if you can, please raise an issue on the Node-RED repository so this doesn't slip.

Done, thanks for the reminder. Had to create a new GitHub account for some reason.

1 Like

For the record: Shared configuration selector defaults to "none" even if valid config node exists · Issue #5354 · node-red/node-red · GitHub