Skip to content

Commit

Permalink
Build: (a14586c) Merge pull request #42 from Alex-NRCan/fix-x-y-slide…
Browse files Browse the repository at this point in the history
…rs-states

Keep the state of X and Y slider values for the next rendering. (#42)
  • Loading branch information
jolevesq committed Nov 3, 2023
1 parent 4318955 commit 0de8b48
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -44653,6 +44653,9 @@ function GeoChart(props) {
// Calculate filterings
calculateFiltering(selectedDatasource, newValue, ySliderValues);

// Set the X State
setXSliderValues(newValue);

// Callback
onSliderXChanged === null || onSliderXChanged === void 0 || onSliderXChanged(newValue);
};
Expand All @@ -44665,6 +44668,9 @@ function GeoChart(props) {
// Calculate filterings
calculateFiltering(selectedDatasource, xSliderValues, newValue);

// Set the Y State
setYSliderValues(newValue);

// Callback
onSliderYChanged === null || onSliderYChanged === void 0 || onSliderYChanged(newValue);
};
Expand Down

0 comments on commit 0de8b48

Please sign in to comment.