I am working on the following: a user should be able to choose a date when an employee is inactive. I want the user to be notified in case a date is chosen which is more than 3 months ago. I want this notification to appear the moment the user leaves the date field.
Displaying the message happens, just not at the right time. Instead of the message appearing the moment after you choose the date, the message already appears when you scroll through the calendar and go back further than 3 months.
Can someone explain what could possibly be going wrong here?