Skip to content

Commit c7dd845

Browse files
committed
don't coerce texttemplate when no text - fix for scatterternary
1 parent daa2c7e commit c7dd845

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: src/traces/scatterternary/defaults.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ module.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout
5858
coerce('sum');
5959

6060
coerce('text');
61-
coerce('texttemplate');
6261
coerce('hovertext');
6362
if(traceOut.hoveron !== 'fills') coerce('hovertemplate');
6463

@@ -76,6 +75,7 @@ module.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout
7675
}
7776

7877
if(subTypes.hasText(traceOut)) {
78+
coerce('texttemplate');
7979
handleTextDefaults(traceIn, traceOut, layout, coerce);
8080
}
8181

Diff for: test/jasmine/tests/scatterternary_test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ describe('Test scatterternary *cliponaxis*', function() {
556556
});
557557
});
558558

559-
describe('Test scattergeo texttemplate:', function() {
559+
describe('Test scatterternary texttemplate:', function() {
560560
checkTextTemplate([{
561561
'type': 'scatterternary',
562562
'a': [3, 2, 5],

0 commit comments

Comments
 (0)