Skip to content

Commit

Permalink
fix(date-picker): check for querySelector value added (#2374)
Browse files Browse the repository at this point in the history
  • Loading branch information
tshimber authored Dec 4, 2024
1 parent c12df4a commit dac9e93
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,12 @@ export class DatePicker {
*/
@Watch('value')
onValueChange() {
this.hasValue = this.value != null && this.value !== '';
// @ts-ignore
this.duetInput.querySelector('.duet-date__input').value = this.value;
this.hasValue = this.value !== null && this.value !== '';
const input = this.duetInput.querySelector('.duet-date__input');
if (input) {
// @ts-ignore
input.value = this.value;
}
}

/**
Expand Down

0 comments on commit dac9e93

Please sign in to comment.