fix(datepicker): better visibility handling