Skip to content

Commit

Permalink
fix: Correctly restore palette when closing animation is interrupted …
Browse files Browse the repository at this point in the history
…by second click
  • Loading branch information
rkunev committed Dec 1, 2018
1 parent 39196b3 commit 84a8aa3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ColorPicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
selectColor() {
this.isPressed = true;
if (this.isPaletteIn) {
if (this.isPaletteIn && this.isKnobIn) {
this.$emit('select', this.value);
this.isRippling = true;
Expand All @@ -160,6 +160,7 @@
this.isKnobIn = false;
} else {
this.isKnobIn = true;
this.isPaletteIn = true;
}
}
Expand Down

0 comments on commit 84a8aa3

Please sign in to comment.