From 467f866c9d462fc948e738b7977a43e85df21d97 Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 31 Jan 2021 12:19:34 +0100 Subject: [PATCH] Fix resetting colors from the color picker --- src/components/input/colorPicker.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/input/colorPicker.vue b/src/components/input/colorPicker.vue index 2ad2d6e05c..5b2395fd7d 100644 --- a/src/components/input/colorPicker.vue +++ b/src/components/input/colorPicker.vue @@ -65,9 +65,9 @@ export default { }, }, methods: { - update() { + update(force = false) { - if(this.empty) { + if(this.empty && !force) { return } @@ -84,7 +84,7 @@ export default { // FIXME: I havn't found a way to make it clear to the user the color war reset. // Not sure if verte is capable of this - it does not show the change when setting this.color = '' this.color = '' - this.update() + this.update(true) }, }, }