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 Nov 9, 2023
1 parent 0c4098c commit fe38238
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 fe38238

Please sign in to comment.