Current Behavior
When trying to save code to the focused function folder after selecting "Save to Library..." in the function node property UI, Node-RED users cannot save the code when the folder isn't expanded.
On the other hand, they can save code when folder is expanded.
This issue also occurs with the Template node.
Expected Behavior
Even if the folder isn't expanded manually, Node-RED users can save the code to the focused folder.
In the "Export nodes" dialog, they can save flow without expanding the folder operations. I would like to apply the same behavior.
Steps To Reproduce
- Place a function node in the flow.
- Open the function node properties UI
- Select "Save to Library..."
- Click "Save"
Example flow
Environment
- Node-RED version: v4.1.1
- Node.js version: v24.4.1
- npm version: v11.4.2
- Platform/OS: Ubuntu on WSL2 in Windows 11 Enterprise 24H2
- Browser: Microsoft Edge 142.0.3595.53 (64 bit)