diff --git a/src/components/input/colorPicker.vue b/src/components/input/colorPicker.vue
index fa11b7e3..2ad2d6e0 100644
--- a/src/components/input/colorPicker.vue
+++ b/src/components/input/colorPicker.vue
@@ -15,7 +15,9 @@
:rgbSliders="true"
model="hex"
picker="square"
- v-model="color"/>
+ v-model="color"
+ :class="{'is-empty': empty}"
+ />
Reset Color
@@ -57,9 +59,18 @@ export default {
mounted() {
this.color = this.value
},
+ computed: {
+ empty() {
+ return this.color === '#000000' || this.color === ''
+ },
+ },
methods: {
update() {
+ if(this.empty) {
+ return
+ }
+
if (this.lastChangeTimeout !== null) {
clearTimeout(this.lastChangeTimeout)
}
@@ -78,3 +89,15 @@ export default {
},
}
+
+