Skip to content

Commit

Permalink
Fix modeBarButtons issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
nickmelnikov82 committed May 5, 2022
1 parent 042742d commit 98e67de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/modebar/manage.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ var isUnifiedHover = require('../fx/helpers').isUnifiedHover;
var createModeBar = require('./modebar');
var modeBarButtons = require('./buttons');
var DRAW_MODES = require('./constants').DRAW_MODES;
var _ = require('lodash');

/**
* ModeBar wrapper around 'create' and 'update',
Expand Down Expand Up @@ -44,7 +45,7 @@ module.exports = function manageModeBar(gd) {
].join(' '));
}

var customButtons = context.modeBarButtons;
var customButtons = _.cloneDeep(context.modeBarButtons);
var buttonGroups;

if(Array.isArray(customButtons) && customButtons.length) {
Expand Down

0 comments on commit 98e67de

Please sign in to comment.