Always updates input and hides when clicking on a date range