mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Show quick-add dialog when draggin wire to empty space
This commit is contained in:
		@@ -1894,7 +1894,18 @@ RED.view = (function() {
 | 
				
			|||||||
                };
 | 
					                };
 | 
				
			||||||
                RED.history.push(historyEvent);
 | 
					                RED.history.push(historyEvent);
 | 
				
			||||||
                RED.nodes.dirty(true);
 | 
					                RED.nodes.dirty(true);
 | 
				
			||||||
 | 
					            } else {
 | 
				
			||||||
 | 
					                // Trigger quick add dialog
 | 
				
			||||||
 | 
					                d3.event.stopPropagation();
 | 
				
			||||||
 | 
					                clearSelection();
 | 
				
			||||||
 | 
					                const point = d3.mouse(this);
 | 
				
			||||||
 | 
					                var clickedGroup = getGroupAt(point[0], point[1]);
 | 
				
			||||||
 | 
					                if (drag_lines.length > 0) {
 | 
				
			||||||
 | 
					                    clickedGroup = clickedGroup || RED.nodes.group(drag_lines[0].node.g)
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					                showQuickAddDialog({ position: point, group: clickedGroup });
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            hideDragLines();
 | 
					            hideDragLines();
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        if (lasso) {
 | 
					        if (lasso) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user