Skip to content

Quick-add behavior when called from context menu #5783

Open

Description

@bonanitech

Current Behavior

I'm not sure whether this should be considered a bug or a feature, since it could help with the node positioning.

If you right-click on the workspace to open the context menu, select Insert > Node, the quick-add dialog will open. Then, if you click elsewhere on the workspace, the quick-add dialog will "be moved" there. And this will repeat until you close the quick-add dialog.

This doesn't happen when opening the quick-add dialog using cmd/ctrl + click. The quick-add dialog will be closed if you click elsewhere.

Screen.Recording.2026-06-04.at.9.43.01.AM.mov

Expected Behavior

No response

Steps To Reproduce

  • Right-click on the workspace to open the context menu
  • Select Insert > Node
  • Click elsewhere on the workspace

Example flow

No response

Environment

  • Node-RED version: current dev branch (also happens in v4)
  • Node.js version: 26.0.0
  • npm version: 11.12.1
  • Platform/OS: macOS Tahoe 26.5
  • Browser: Chrome, Safari, Firefox

Activity

  1. knolleary commented on Jun 8, 2026

    @knolleary
    Member

    For some reason, the cancel event of typeSearch isn't being triggered in this scenario, so the mouse state isn't being cleared and it thinks we're in QUICK_JOINING mode - so keeps reopening the dialog.

    I think it's related to event handler ordering - but why its different between the two cases is not obvious to me.

  2. added theissue type on Jun 9, 2026
  3. added this to the 5.0 milestone on Jun 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions