Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

Quick-add behavior when called from context menu

已關閉
#5,783 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 2 天內回覆

還沒有人認領這個 Issue。

評估

難度
3/5
預估耗時
1-2 天
新手友好度
55/100
Issue 類型
缺陷
描述清晰度
基本清楚
活躍度
冷清
技術堆疊
javascript
領域
frontend

研究方向

首先在 Node-RED 編輯器中重現內容選單流程,並將其與 issue 中描述的 cmd/ctrl-click 流程進行比較。追蹤內容選單中的 Insert > Node 項目,以及 quick-add 對話框對 workspace 點擊的處理。完成的標準是:點擊其他位置時,對話框能一致地關閉,而不是移動對話框並讓它保持開啟狀態。

由索引模型根據 Issue 內容生成。

描述

bug editor
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.

https://github.com/user-attachments/assets/11a7bd53-281f-40ff-a59d-b61d5dada700

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
主要語言
JavaScript
星號
23.8k
分支
3.9k
平均合併
2 天 16 小時
30 天內合併 PR
31

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

node-red/node-red 的其他 Issue

查看 node-red/node-red 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。