Skip to content

Commit 4b164a2

Browse files
committed
prepend modebar with vanilla javascript
1 parent 1c70f9a commit 4b164a2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/components/modebar/modebar.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,7 @@ proto.update = function(graphInfo, buttons) {
8888
}
8989

9090
if(fullLayout.modebar.orientation === 'v') {
91-
d3.select(this.element).insert(function() {
92-
return logoGroup;
93-
}, ':first-child');
91+
this.element.insertBefore(logoGroup, this.element.childNodes[0]);
9492
} else {
9593
this.element.appendChild(logoGroup);
9694
}

0 commit comments

Comments
 (0)