Datepicker disable & data with reactive forms (Angular 5)
Hi,Is there any possibility to disable the Datepicker component? I figured out that if I enter the date manually (by focusing the datepicker with tab) the date is not stored in my Angular Reactive Form Component.If I enter it by using the datepicker with the date-selection, it works properly.Any idea how I can store the date by typing it manually? Best,moose
I’ve checked your’s problem, but for me, everything is working fine.
I have imported ReactiveFormsModule in my app.module, and created a datepicker markup in this way:
<form [formGroup]="validatingForm"> <mdb-date-picker #datePicker name="required" [options]="myDatePickerOptions" [placeholder]="'Selected date'" [(ngModel)]="model" formControlName="required"></mdb-date-picker> </form>
Please login or Register to submit your answer