Skip to content
This repository has been archived by the owner on Dec 26, 2019. It is now read-only.

Problem with manual input and endDate #70

Open
jzcorrea opened this issue Feb 11, 2016 · 0 comments
Open

Problem with manual input and endDate #70

jzcorrea opened this issue Feb 11, 2016 · 0 comments

Comments

@jzcorrea
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant