Open Raphyyy opened 2 years ago
Hi @h2qutc sorry to bother you but do you have any quick workaround to do this ? From usage code or even from the package itself I could patch with patch-package, I'll take
I find a workaround by replacing (focus)="picker.open()"
with (focus)="picker._selected = formControl.value; picker.open()"
, with formControl.value
refering to the datetime value
Hi and thanks for your work,
When opened trough
(focus)="picker.open()"
on theinput
element, the inner selected datetime is not being updated when you reopen it the next time.Stackblitz : https://stackblitz.com/edit/demo-ngx-mat-datetime-picker-angular9-tpxldn?file=src%2Fapp%2Fapp.component.html (Its basically the same sketch as in the README with
(focus)="picker.open()"
added on the input element)Step to reproduce :
input
element (elsewhere than on the calendar icon) to open the datepickerUsing
click
instead offocus
doesn't fix it neither.