Skip to content

Commit

Permalink
Set default values for required and disabled for labeled slider (#19246)
Browse files Browse the repository at this point in the history
Set default values
  • Loading branch information
silamon authored and bramkragten committed Jan 2, 2024
1 parent 7354988 commit c2f3e43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/ha-labeled-slider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ class HaLabeledSlider extends LitElement {

@property() public caption?: string;

@property() public disabled?: boolean;
@property({ type: Boolean }) public disabled = false;

@property() public required?: boolean;
@property({ type: Boolean }) public required = true;

@property() public min: number = 0;

Expand Down

0 comments on commit c2f3e43

Please sign in to comment.