From 7532508274506a10bf3014342342387a21b4bf3b Mon Sep 17 00:00:00 2001 From: Mojtaba Samimi Date: Mon, 12 Dec 2022 17:41:28 -0500 Subject: [PATCH 1/2] disable interactions for slider when staticPlot is true --- src/components/sliders/draw.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/sliders/draw.js b/src/components/sliders/draw.js index 1ad51536c9b..522e1f0209c 100644 --- a/src/components/sliders/draw.js +++ b/src/components/sliders/draw.js @@ -449,6 +449,8 @@ function setActive(gd, sliderGroup, sliderOpts, index, doCallback, doTransition) } function attachGripEvents(item, gd, sliderGroup) { + if(gd._context.staticPlot) return; + var node = sliderGroup.node(); var $gd = d3.select(gd); From 6209bf211815bcae67449599767ef9dbc7f30538 Mon Sep 17 00:00:00 2001 From: Mojtaba Samimi Date: Mon, 12 Dec 2022 18:55:01 -0500 Subject: [PATCH 2/2] log for PR 6393 --- draftlogs/6393_fix.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 draftlogs/6393_fix.md diff --git a/draftlogs/6393_fix.md b/draftlogs/6393_fix.md new file mode 100644 index 00000000000..b19412f058e --- /dev/null +++ b/draftlogs/6393_fix.md @@ -0,0 +1 @@ + - Disable slider interactions when `staticPlot` is true [[#6393](https://github.com/plotly/plotly.js/pull/6393)]