diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/group.js b/packages/node_modules/@node-red/editor-client/src/js/ui/group.js index 9dbd9c19b..e7220b817 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/group.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/group.js @@ -105,18 +105,18 @@ RED.group = (function() { cellHeight: 16, cellMargin: 3, none: true, - opacity: style['stroke-opacity'] || 1.0 + opacity: style.hasOwnProperty('stroke-opacity')?style['stroke-opacity']:(defaultGroupStyle.hasOwnProperty('stroke-opacity')?defaultGroupStyle['stroke-opacity']:1.0) }).appendTo("#node-input-row-style-stroke"); RED.colorPicker.create({ id:"node-input-style-fill", - value: style.fill || "none", + value: style.fill || defaultGroupStyle.fill ||"none", palette: colorPalette, cellPerRow: colorCount, cellWidth: 16, cellHeight: 16, cellMargin: 3, none: true, - opacity: style['fill-opacity'] || 1.0 + opacity: style.hasOwnProperty('fill-opacity')?style['fill-opacity']:(defaultGroupStyle.hasOwnProperty('fill-opacity')?defaultGroupStyle['fill-opacity']:1.0) }).appendTo("#node-input-row-style-fill"); createLayoutPicker({ @@ -162,12 +162,6 @@ RED.group = (function() { delete this.style.color; } - if (this.style["stroke-opacity"] === "1") { - delete this.style["stroke-opacity"] - } - if (this.style["fill-opacity"] === "1") { - delete this.style["fill-opacity"] - } var node = this; ['stroke','fill','stroke-opacity','fill-opacity','color','label-position'].forEach(function(prop) { if (node.style[prop] === defaultGroupStyle[prop]) {