Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6a08dfa

Browse files
committed
fix relayout for images update in { 'astr': val }
1 parent 7f7c2fe commit 6a08dfa

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/plot_api/plot_api.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2278,8 +2278,9 @@ Plotly.relayout = function relayout(gd, astr, val) {
22782278
// as it is we get separate calls for x and y (or ax and ay) on move
22792279
objModule.draw(gd, objNum, p.parts.slice(2).join('.'), aobj[ai]);
22802280
delete aobj[ai];
2281-
} else if(p.parts[0] === 'images') {
2282-
var update = Lib.objectFromPath(astr, vi);
2281+
}
2282+
else if(p.parts[0] === 'images') {
2283+
var update = Lib.objectFromPath(ai, vi);
22832284
Lib.extendDeepAll(gd.layout, update);
22842285

22852286
Images.supplyLayoutDefaults(gd.layout, gd._fullLayout);

0 commit comments

Comments
 (0)