mirror of https://github.com/node-red/node-red.git
Refix #3170 - copy switch rule type when adding new rule
parent
6cb06c146d
commit
fded1e0021
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue