mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Refix #3170 - copy switch rule type when adding new rule
This commit is contained in:
		| @@ -211,6 +211,7 @@ | ||||
|                             var lastRule = $("#node-input-rule-container").editableList('getItemAt',i-1); | ||||
|                             var exportedRule = exportRule(lastRule.element); | ||||
|                             opt.r.vt = exportedRule.vt; | ||||
|                             opt.r.v = ""; | ||||
|                             // We could copy the value over as well and preselect it (see the 'activeElement' code below) | ||||
|                             // But not sure that feels right. Is copying over the last value 'expected' behaviour? | ||||
|                             // It would make sense for an explicit 'copy' action, but not sure where the copy button would | ||||
|   | ||||
		Reference in New Issue
	
	Block a user