Skip to content

Commit

Permalink
Do not watch defaultColor in ColorSlider
Browse files Browse the repository at this point in the history
There doesn't seem to be a need for it
  • Loading branch information
eronisko committed Apr 19, 2024
1 parent f70a93f commit 54df35a
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions resources/js/components/catalog-new/NewColorSlider.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 54df35a

Please sign in to comment.