Skip to content

Commit e2ad33d

Browse files
Changes requested by @alexcjohnson
1 parent 3929be6 commit e2ad33d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/components/rangeslider/defaults.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,13 @@ module.exports = function handleDefaults(layoutIn, layoutOut, axName) {
4646

4747
var subplots = layoutOut._subplots;
4848
if(subplots) {
49-
var yIds = subplots.yaxis;
49+
var yIds = subplots.cartesian
50+
.filter(function(subplotId) {
51+
return subplotId.substr(0, subplotId.indexOf('y')) === axisIds.name2id(axName);
52+
})
53+
.map(function(subplotId) {
54+
return subplotId.substr(subplotId.indexOf('y'), subplotId.length);
55+
});
5056
var yNames = Lib.simpleMap(yIds, axisIds.id2name);
5157
for(var i = 0; i < yNames.length; i++) {
5258
var yName = yNames[i];

0 commit comments

Comments
 (0)