Skip to content

Commit 36512e5

Browse files
committed
fix(datetimepicker): fix header time not change when click clock cell
1 parent c0ed62d commit 36512e5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: projects/extensions/datetimepicker/time-view.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -552,8 +552,8 @@ export class MtxTimeView<D> implements OnChanges, OnDestroy {
552552

553553
_dialTimeSelected(date: D): void {
554554
if (this.clockView === 'hour') {
555+
this.clockView = 'minute';
555556
this._activeDate = date;
556-
this._clockView = 'minute';
557557
}
558558
if (!this._adapter.sameDatetime(date, this.selected) || !this.preventSameDateTimeSelection) {
559559
this.selectedChange.emit(date);
@@ -569,6 +569,7 @@ export class MtxTimeView<D> implements OnChanges, OnDestroy {
569569
} else {
570570
this._dialTimeSelected(date);
571571
}
572+
this.clockViewChange.emit(this.clockView);
572573
}
573574

574575
_onActiveDateChange(date: D) {

0 commit comments

Comments
 (0)