From 54df35ac0c15465a82f309fd7a3a8098ca1dbdc7 Mon Sep 17 00:00:00 2001 From: Ernest Walzel Date: Fri, 19 Apr 2024 10:31:29 +0200 Subject: [PATCH] Do not watch defaultColor in ColorSlider There doesn't seem to be a need for it --- resources/js/components/catalog-new/NewColorSlider.vue | 6 ------ 1 file changed, 6 deletions(-) diff --git a/resources/js/components/catalog-new/NewColorSlider.vue b/resources/js/components/catalog-new/NewColorSlider.vue index 3a3fd8ed7..0fd20a270 100644 --- a/resources/js/components/catalog-new/NewColorSlider.vue +++ b/resources/js/components/catalog-new/NewColorSlider.vue @@ -96,12 +96,6 @@ export default { slider: VueSlider, }, watch: { - defaultColor(newDefaultColor) { - this.hue = newDefaultColor ? tinycolor(newDefaultColor).toHsl()?.h : defaultHue - this.lightness = newDefaultColor - ? tinycolor(newDefaultColor)?.toHsl()?.l - : defaultLightness - }, hue(newHue) { this.immediateHue = newHue this.$emit('change', this.color)