Skip to content

Commit

Permalink
Merge pull request #6393 from plotly/fix6392-static-slider
Browse files Browse the repository at this point in the history
disable interactions for `slider` when `staticPlot` is true
  • Loading branch information
archmoj authored Dec 13, 2022
2 parents 6c5d30f + 6209bf2 commit 0e2b249
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions draftlogs/6393_fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Disable slider interactions when `staticPlot` is true [[#6393](https://github.com/plotly/plotly.js/pull/6393)]
2 changes: 2 additions & 0 deletions src/components/sliders/draw.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 0e2b249

Please sign in to comment.