The date-picker dialog would not close even if focus moves out of the datepicker input field.
I have added a focus-out event listener instead of blur event listener. If the new focus is within the datepicker, then the dialog will remain open. But if the new focus is outside the datepicker, then dialog will close.
The date-picker dialog would not close even if focus moves out of the datepicker input field.
I have added a focus-out event listener instead of blur event listener. If the new focus is within the datepicker, then the dialog will remain open. But if the new focus is outside the datepicker, then dialog will close.