Skip to content

Commit

Permalink
Reset only when animating
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann committed Nov 6, 2017
1 parent 3470982 commit bbac8dc
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/core/core.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -365,9 +365,11 @@ module.exports = function(Chart) {
me.updateLayout();

// Can only reset the new controllers after the scales have been updated
helpers.each(newControllers, function(controller) {
controller.reset();
});
if (me.options.animation.duration) {
helpers.each(newControllers, function(controller) {
controller.reset();
});
}

me.updateDatasets();

Expand Down

0 comments on commit bbac8dc

Please sign in to comment.