diff --git a/packages/uui-color-slider/lib/uui-color-slider.element.ts b/packages/uui-color-slider/lib/uui-color-slider.element.ts index 543e0c373..966f5ae1f 100644 --- a/packages/uui-color-slider/lib/uui-color-slider.element.ts +++ b/packages/uui-color-slider/lib/uui-color-slider.element.ts @@ -107,11 +107,11 @@ export class UUIColorSliderElement extends LabelMixin('label', LitElement) { willUpdate(changedProperties: Map) { if (changedProperties.has('type')) { if (this.type === 'hue') { - this.max = this.max ?? 360; + this.max = 360; } else if (this.type === 'saturation') { - this.max = this.max ?? 100; + this.max = 100; } else if (this.type === 'lightness') { - this.max = this.max ?? 100; + this.max = 100; } else if (this.type === 'opacity') { this.max = this.max ?? 100; }