Skip to content
This repository has been archived by the owner on Apr 8, 2022. It is now read-only.

Trigger change event on textbox when color picked #192

Merged
merged 1 commit into from
Feb 2, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/js/colorpicker-component.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ Colorpicker.prototype = {
val = val || this.color.toString(this.format, false);
if (this.input !== false) {
this.input.prop('value', val);
this.input.trigger('change');
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One observation: if the new color is the same as the previous one, should we really trigger this event?

Copy link
Owner

@itsjavi itsjavi Jan 30, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as requested in other of your PR, the regeneration of the dist files is required so I can merge this directly.

}
return val;
},
Expand Down