Fix for timepicker mode in firefox. Closes #222