Update state.date when props.selected changes

This solves an issue where the calendar wouldn't immediately switch to the correct view when a user types in another date in the input.