Skip to content

Commit 5b9ab5d

Browse files
committed
Don't gate legend/legendgroup coercion
1 parent e8fb789 commit 5b9ab5d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/components/shapes/defaults.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,11 @@ function handleShapeDefaults(shapeIn, shapeOut, fullLayout) {
3838
if (!visible) return;
3939

4040
var showlegend = coerce('showlegend');
41+
// Coerce legend/legendgroup even when showlegend is false so hidden group members still toggle with the group.
42+
coerce('legend');
43+
coerce('legendgroup');
4144
if (showlegend) {
42-
coerce('legend');
4345
coerce('legendwidth');
44-
coerce('legendgroup');
4546
coerce('legendgrouptitle.text');
4647
Lib.coerceFont(coerce, 'legendgrouptitle.font');
4748
coerce('legendrank');

0 commit comments

Comments
 (0)