Skip to content

Commit

Permalink
fix(legacy): InputDateTime validators not triggered when value change
Browse files Browse the repository at this point in the history
  • Loading branch information
mdlufy committed Nov 25, 2024
1 parent b45de14 commit d7291cd
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,10 @@ export class TuiInputDateTimeComponent
}

public onValueChange(value: string): void {
if (this.control) {
this.control.updateValueAndValidity({emitEvent: false});
}

if (!value) {
this.onOpenChange(true);
}
Expand Down

0 comments on commit d7291cd

Please sign in to comment.