Fix display issue with datepicker persisting on page load

Fixes #568

@lukecarbis Please review
Thanks @lukecarbis, yeah I agree. It was meant to just help a little with the workflow, but losing it means nothing. A great trade for fixing a bug if you ask me!