Skip to content

Commit

Permalink
UI Navigation Tabs : Date range picker - Single Date always sets to c…
Browse files Browse the repository at this point in the history
…urrent date independent of selected value in calendar #4347
  • Loading branch information
shral committed Sep 6, 2024
1 parent 43001bc commit d98bb1a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,11 @@ <h5>{{header}}</h5>
<div class="infinit" *ngIf="!(mode === 'range' || mode === 'leftOpen') && mode != 'single'">&infin;</div>
<date-picker
*ngIf="mode === 'single'"
[model]="toModel"
[model]="singleDateModel"
[format]="'yyyyMMdd'"
i18n-placeholder="@@placeholder.date_formated" placeholder="Date (yyyymmdd)"
[returnAsDateType]="true"
(onValueSet)="addEvent('toModel', $event)"
(onValueSet)="addEvent('singleDateModel', $event)"
></date-picker>
<!-- <mat-form-field class="material_calendar single_datepicker" *ngIf="mode === 'single'" [floatLabel]="'auto'">
<input matInput
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -302,14 +302,14 @@ export class RangePickerComponent implements OnInit {
this.showPicker = false;
}
today(){
this.model = j4care.convertDateToString(new Date());
//this.model = j4care.convertDateToString(new Date());
/* this.modelChange.emit(this.model);
if(this.dateRange && this.splitDateRangeChanged){
this.splitDateRangeChanged.emit(this.SplitStudyDateRange);
}
this.showPicker = false;*/
// this.filterChanged();
// this.singleDateModel =
this.singleDateModel = j4care.convertDateToString(new Date());
this.mode = "single";
this.setRange();
}
Expand Down

0 comments on commit d98bb1a

Please sign in to comment.