Skip to content

Commit

Permalink
pkp/pkp-lib#9790 Fix color-picker value binding
Browse files Browse the repository at this point in the history
  • Loading branch information
jardakotesovec committed Mar 19, 2024
1 parent bba26a3 commit 62b568a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/Form/fields/FieldColor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@
/>
<div class="pkpFormField__control">
<color-picker
:value="currentValue"
:model-value="currentValue"
:disable-alpha="true"
@input="setValue"
@update:model-value="setValue"
/>
<field-error
v-if="errors && errors.length"
Expand Down Expand Up @@ -70,6 +70,7 @@ export default {
* @param {String} newVal
*/
setValue: function (newVal) {
console.log('set value triggered');
if (newVal.hex === this.currentValue) {
return;
}
Expand Down

0 comments on commit 62b568a

Please sign in to comment.