We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c95cc86 commit 2bc3b40Copy full SHA for 2bc3b40
src/plugin/VColorField.vue
@@ -506,6 +506,7 @@ function updateModelValue(value: any) {
506
507
if (returnColor.length < 7) {
508
modelValue.value = returnColor;
509
+ updateModelValues(returnColor);
510
return;
511
}
512
@@ -522,8 +523,11 @@ function updateModelValue(value: any) {
522
523
updateModelValues(returnColor);
524
525
-function updateModelValues(val: any) {
526
- colorPickerModelValue.value = val;
+function updateModelValues(val: any, updatePicker = true) {
527
+ if (updatePicker) {
528
+ colorPickerModelValue.value = val;
529
+ }
530
+
531
modelValue.value = val;
532
emit('update:modelValue', val);
533
emit('update', val);
0 commit comments