Skip to content

Commit

Permalink
fix: review Jeri pt.1
Browse files Browse the repository at this point in the history
  • Loading branch information
DavideMininni-Fincons committed Dec 16, 2024
1 parent 59ebdc0 commit ca15fd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/elements/slider/slider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class SbbSliderElement extends SbbDisabledMixin(SbbFormAssociatedMixin(LitElemen
/** Numeric value for the inner HTMLInputElement. */
@property({ attribute: 'value-as-number', type: Number })
public set valueAsNumber(value: number | null) {
this.value = value?.toString() || null;
this.value = value?.toString() ?? null;
}
public get valueAsNumber(): number | null {
return Number(this.value);
Expand Down

0 comments on commit ca15fd3

Please sign in to comment.