-
-
diff --git a/lib/vue/src/components/input/CInputColorPicker.vue b/lib/vue/src/components/input/CInputColorPicker.vue
index 9a2207d67..c68105c1d 100644
--- a/lib/vue/src/components/input/CInputColorPicker.vue
+++ b/lib/vue/src/components/input/CInputColorPicker.vue
@@ -145,6 +145,12 @@ export default {
},
},
+ watch: {
+ value (value) {
+ this.currentColor = value
+ },
+ },
+
methods: {
updateColor: debounce(function ({ hex8 = '' }) {
this.currentColor = hex8
@@ -159,7 +165,7 @@ export default {
},
saveColor () {
- this.$emit('input', this.currentColor || this.value)
+ this.$emit('input', this.currentColor)
this.closeMenu()
},
diff --git a/lib/vue/src/components/navigation/CSidebar.vue b/lib/vue/src/components/navigation/CSidebar.vue
index 68df1c41c..e40d8efc5 100644
--- a/lib/vue/src/components/navigation/CSidebar.vue
+++ b/lib/vue/src/components/navigation/CSidebar.vue
@@ -20,8 +20,8 @@
>
![]()
-