Skip to content

Commit 93284df

Browse files
Fixed click test
1 parent 00edf56 commit 93284df

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/components/annotations/defaults.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ function handleAnnotationDefaults(annIn, annOut, fullLayout) {
6060
if(showArrow) {
6161
var arrowPosAttr = 'a' + axLetter;
6262
// axref, ayref
63-
var aaxRef = Axes.coerceRef(annIn, annOut, gdMock, arrowPosAttr, '',
64-
['paper', 'pixel'], true);
63+
var aaxRef = Axes.coerceRef(annIn, annOut, gdMock, arrowPosAttr, 'pixel',
64+
['pixel', 'paper'], true);
6565

6666
// for now the arrow can only be on the same axis or specified as pixels
6767
// TODO: sometime it might be interesting to allow it to be on *any* axis

src/plots/cartesian/axes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ axes.coerceRef = function(containerIn, containerOut, gd, attr, dflt, extraOption
9393
var refAttr = attr + 'ref';
9494
var attrDef = {};
9595

96-
if(!dflt) dflt = axlist[0] || extraOption;
96+
if(!dflt) dflt = axlist[0] || (typeof extraOption === 'string' ? extraOption : extraOption[0]);
9797
if(!extraOption) extraOption = dflt;
9898
if(domainRef) axlist = axlist.concat(axlist.map(function(x) { return x + ' domain'; }));
9999

0 commit comments

Comments
 (0)