Skip to content

Commit

Permalink
fix(date-picker): fix date picker input blur event
Browse files Browse the repository at this point in the history
  • Loading branch information
su4g committed Nov 16, 2023
1 parent 4c2f14a commit 76f096b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/date-picker/picker.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import { CompatibleValue, RangePartType } from './inner-types';
import { getFlexibleAdvancedReadableValue } from './picker.util';
import { ThyDateGranularity } from './standard-types';
import { ThyEnterDirective } from 'ngx-tethys/shared';
import { BehaviorSubject } from 'rxjs';

/**
* @private
Expand Down Expand Up @@ -139,6 +138,7 @@ export class ThyPickerComponent implements AfterViewInit {
}

onBlur(event: FocusEvent) {
this.blur.emit(event);
if (this.entering) {
this.valueChange.emit(this.pickerInput.nativeElement.value);
}
Expand Down

0 comments on commit 76f096b

Please sign in to comment.