I've found a problem when i use the datepicker with endDate. If endDate is defined, i can't set the date manually via input. The problem occurs when i clear the input with backspace, then i try to digit "1" (because i want to set date 15/02/2016), and the component auto change the value of input to the current date, not allowing me to set the correct date.
In my case, i have two scenarios: When i have a parameter of my application enabled, users can select future dates, then i set endDate to Infinity. When the parameter is disabled, the endDate is the current date. The problem occurs in both scenarios.
I've check the component and debugged, it seems that the problem occurs when you call this._updateDatepicker() inside the endDate observer, and i don't know why this observer is called every time i change the input value. If i comment this line, it works fine.
Hi guys!
I've found a problem when i use the datepicker with endDate. If endDate is defined, i can't set the date manually via input. The problem occurs when i clear the input with backspace, then i try to digit "1" (because i want to set date 15/02/2016), and the component auto change the value of input to the current date, not allowing me to set the correct date.
In my case, i have two scenarios: When i have a parameter of my application enabled, users can select future dates, then i set endDate to Infinity. When the parameter is disabled, the endDate is the current date. The problem occurs in both scenarios.
I've check the component and debugged, it seems that the problem occurs when you call this._updateDatepicker() inside the endDate observer, and i don't know why this observer is called every time i change the input value. If i comment this line, it works fine.