Skip to content
This repository has been archived by the owner on Jul 17, 2020. It is now read-only.

Commit

Permalink
fix(range-control): fixes bug with mounting component (#140)
Browse files Browse the repository at this point in the history
Fixes Range Controls resetting their value when mutated after remount

fix #137
  • Loading branch information
2xAA authored Jun 12, 2020
1 parent 5c02186 commit 8639086
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/Controls/RangeControl.vue
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ export default {
this.context.strokeStyle = "#fff";
requestAnimationFrame(this.draw);
this.actualPosition = -this.value * this.spacingCalc;
this.resizeObserver = new ResizeObserver(this.resize).observe(
this.$refs.container
);
Expand Down

0 comments on commit 8639086

Please sign in to comment.