Skip to content

Instantly share code, notes, and snippets.

@aldavigdis
Created August 11, 2018 19:54
Show Gist options
  • Save aldavigdis/e47ef8b12a08d966d59d54b8325e5d4c to your computer and use it in GitHub Desktop.
Save aldavigdis/e47ef8b12a08d966d59d54b8325e5d4c to your computer and use it in GitHub Desktop.
Refreshing datepicker
<DayPickerSingleDateController
key={ 'datepicker-controller-' + momentDate.format( 'MM-YYYY' ) }
onDateChange={ onChangeMoment }
focused={ momentDate }
date={ momentDate }
numberOfMonths={ 1 }
transitionDuration={ 0 }
/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment