Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
If a user enters invalid input, lets say text, and then clicks on the calendar button, calendar shows NaN. After that, even if the input is removed and calendar button clicked again, it continues to show NaN. Is there a way to check valid value and reset the field to nil, if the input is invalid instead of calendar being stuck at NaN.