Open Maurino5 opened 3 years ago
Sorry, I don't know Angular at all!
Maybe someone else can help you.
Actually, I don't think the problem is related to Angular itself, but it seems it's something in the "onUpdate" method...as I found looking around..
Anyway, I post the workaround I used for Angular, in case anyone is interested. Creation of the datepicker must be in the ngOnInit and must implement the onUpdate....something like this:
$('#datepicker').datepicker({ onUpdate: (v) => this.onChange(v) } });
Hope this could be useful.
for angular, you can use
How can this datepicker be integrated into a SPA with Angular8? By creating a form with the datepicker, the form element is not updated when you click on the date, but only by writing the date by hand.