Chat app. I want to add the functionality to browse chat archives. I have an <input type="date" />; the intention is that the user may use this input to specify which day they want to see the archives from.
Firefox displays a nice calendar for <input type="date" />. When the user clicks the month, Firefox displays a list of months and years for the user to select. Now I of course want to only send the request to the server when the user is done editing the calendar. It is wrong to send the request to server when the user just clicks on the input and starts editing the calendar; it is also wrong to send the request when the user has just selected a year and a month, but not yet a day of this month.
Firing which event should cause the request to the server to be sent?
I tried:
onclick- but this fires when the user clicks the input and starts editing the calendar, not when they're done;onsubmit- but this doesn't fire at all;onchangeandoninput- but this also fires when the user has just selected a year and / or a month, but not yet a day;onblur- but this requires the user to explicitely click anywhere else and doesn't fire when the user has just clicked a day and the calendar disappears. I think this will be confusing for the user
Is there any other appropriate event?