Skip to content

Commit 5a7d494

Browse files
committed
updatemenus: fix wrong header update
* Note that the click handler already updates the header and invokes `Plots.executeAPICommand`. Fixes plotly#1169
1 parent 5971c16 commit 5a7d494

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/components/updatemenus/draw.js

-5
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,6 @@ module.exports = function draw(gd) {
113113
headerGroups.each(function(menuOpts) {
114114
var gHeader = d3.select(this);
115115

116-
var _gButton = menuOpts.type === 'dropdown' ? gButton : null;
117-
Plots.manageCommandObserver(gd, menuOpts, menuOpts.buttons, function(data) {
118-
setActive(gd, menuOpts, menuOpts.buttons[data.index], gHeader, _gButton, data.index, true);
119-
});
120-
121116
if(menuOpts.type === 'dropdown') {
122117
drawHeader(gd, gHeader, gButton, menuOpts);
123118

0 commit comments

Comments
 (0)