We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26936aa commit eadd7fbCopy full SHA for eadd7fb
src/components/modebar/index.js
@@ -85,7 +85,7 @@ proto.updateButtons = function(buttons) {
85
throw new Error('must provide button \'name\' in button config');
86
}
87
if(_this.buttonsNames.indexOf(buttonName) !== -1) {
88
- throw new Error('button name \'', + buttonName + '\' is taken');
+ throw new Error('button name \'' + buttonName + '\' is taken');
89
90
_this.buttonsNames.push(buttonName);
91
@@ -140,6 +140,8 @@ proto.createButton = function (config) {
140
else {
141
button.addEventListener('click', function(ev) {
142
config.click(_this.graphInfo, ev);
143
+
144
+ // only needed for 'hoverClosestGeo' which does not call relayout
145
_this.updateActiveButton(ev.currentTarget);
146
});
147
0 commit comments