Skip to content

Commit

Permalink
fix(date): change value only if valid date has been selected
Browse files Browse the repository at this point in the history
  • Loading branch information
mmarinkov committed Sep 13, 2024
1 parent 59daa0d commit 33ae700
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/core/src/components/bal-date/bal-date.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,9 @@ export class Date implements ComponentInterface, Loggable, BalAriaFormLinking {

private onInputChange = (ev: BalEvents.BalInputDateChange) => {
stopEventBubbling(ev)
this.value = ev.detail
if(ev.detail){
this.value = ev.detail
}
this.balChange.emit(this.value)
}

Expand Down

0 comments on commit 33ae700

Please sign in to comment.