diff --git a/src/components/ColorPicker.vue b/src/components/ColorPicker.vue index e94f816..7c74a92 100644 --- a/src/components/ColorPicker.vue +++ b/src/components/ColorPicker.vue @@ -77,8 +77,8 @@ export default class ColorPicker extends Vue { @Watch('localColor') public onColorChange(color: string | null, oldColor: string | null) { - this.$emit('input', color) - if (oldColor !== color) { + if (this.color !== color) { + this.$emit('input', color) this.$emit('color-change') } }