farbtastic icon indicating copy to clipboard operation
farbtastic copied to clipboard

Trigger "change" event after changing this.value = fb.color

Open rxaviers opened this issue 13 years ago • 1 comments

Farbtastic updates input element value with the chosen color (when using an element as the callback). Although, it's not possible right now to be acknowledged when those changes happen.

This commit triggers the native change event after the color is set. So, user can bind the native "change" event as he would normally do and be notified when a new color is set.

PS: Added a delay mechanism to avoid triggering a bunch of events while sliding the colors.

rxaviers avatar Nov 26 '12 13:11 rxaviers

What's the status of this patch?

ben-eb avatar Jan 31 '14 12:01 ben-eb