vue-color icon indicating copy to clipboard operation
vue-color copied to clipboard

Emit change event

Open cameronhimself opened this issue 7 years ago • 5 comments

Currently, only input events are being emitted, so listeners to that event cause updates every frame while a slider is being dragged around (without using some kind of debounce solution). It would be great if a change event were emitted only after each drag operation completes.

cameronhimself avatar Jan 25 '18 04:01 cameronhimself

Thanks for your feedback.

It would be great if a change event were emitted only after each drag operation completes.

We will implement it in the next big release 3.0, maybe next month.

linx4200 avatar Jan 29 '18 09:01 linx4200

Hi @linx4200! Is there any deadline or maybe roadmap of new versions releases ?

deniszavadskiy avatar Dec 19 '18 12:12 deniszavadskiy

hi Is there any improvement in this issue?

1947324563 avatar Jul 16 '19 09:07 1947324563

i need this update...

dfdevelloper avatar Jul 25 '19 16:07 dfdevelloper

As a work around you can always use your own debounce in the input callback

<sketch-picker 
  @input="updateValue"
  :value="colors">
</sketch-picker>
data() {
  return {
    timeout: null,
  }
}

methods: {
 updateValue(value) {
      clearTimeout(this.timeout);
      this.timeout = setTimeout(() => {
        // run code here
     }, 250);
 }
}

runrog avatar Aug 09 '19 17:08 runrog