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

Open
wants to merge 1 commit into
from

Projects

None yet

2 participants

@rxaviers

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.

ben-eb commented Jan 31, 2014

What's the status of this patch?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment