Skip to content

Commit 6942b10

Browse files
committed
fix colorbar templating for "non-root" colorscales
- propagate template info into colorscale container - fix marker_colorscale_template baseline which was botched from 6a47d66
1 parent 9fc2c82 commit 6942b10

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/components/colorscale/defaults.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,9 @@ module.exports = function colorScaleDefaults(parentContIn, parentContOut, layout
115115
if(prefix && inTrace) showScaleDflt = hasColorbar(containerIn);
116116

117117
var showScale = coerce(prefix + 'showscale', showScaleDflt);
118-
if(showScale) colorbarDefaults(containerIn, containerOut, layout);
118+
if(showScale) {
119+
if(prefix && template) containerOut._template = template;
120+
colorbarDefaults(containerIn, containerOut, layout);
121+
}
119122
}
120123
};
Loading

0 commit comments

Comments
 (0)