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.
Merge pull request #11 from Hacker0x01/update-state-on-props-change

Update state.date when props.selected changes