Fixes date input issue with Firefox