Skip to content

Commit 04d49dd

Browse files
committed
extendDeep for defaultConfig so we clone edits and don't modify it
1 parent b4e26ae commit 04d49dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plot_api/plot_api.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ function opaqueSetBackground(gd, bgColor) {
397397
}
398398

399399
function setPlotContext(gd, config) {
400-
if(!gd._context) gd._context = Lib.extendFlat({}, Plotly.defaultConfig);
400+
if(!gd._context) gd._context = Lib.extendDeep({}, Plotly.defaultConfig);
401401
var context = gd._context;
402402

403403
var i, keys, key;

0 commit comments

Comments
 (0)