Fix display issue with datepicker persisting on page load
Merge pull request #569 from x-team/issue-568

Fix display issue with datepicker persisting on page load