Skip to content

Commit

Permalink
only show clear button if there is a value
Browse files Browse the repository at this point in the history
  • Loading branch information
schelv committed Dec 17, 2023
1 parent f02a6fa commit 067a70a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ha-time-input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class HaTimeInput extends LitElement {
@value-changed=${this._timeChanged}
.enableSecond=${this.enableSecond}
.required=${this.required}
.clearable=${this.clearable}
.clearable=${this.clearable && this.value !== undefined}
.helper=${this.helper}
></ha-base-time-input>
`;
Expand Down

0 comments on commit 067a70a

Please sign in to comment.