Skip to content

Cannot save the code to the library from the function node property UI without expanding the folder #5344

@kazuma2003

Description

@kazuma2003

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.

Image

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

  1. Place a function node in the flow.
  2. Open the function node properties UI
  3. Select "Save to Library..."
  4. 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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions