fixed #4218 Chrome behavior with date fields

Signed-off-by: Viduranga Wijesooriya <vpowerrc@gmail.com>