Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.

DatePickerInput and DatePicker don't update the locale #116

Open
FrancescoCioria opened this issue Apr 24, 2017 · 0 comments
Open

DatePickerInput and DatePicker don't update the locale #116

FrancescoCioria opened this issue Apr 24, 2017 · 0 comments
Labels

Comments

@FrancescoCioria
Copy link
Contributor

description

If you pass first a locale X and then, without unmounting, a locale Y, DatePickerInput and DatePicker don't update the locale.

how to reproduce

  • pass locale en
  • pass locale it without unmounting
  • still using old locale en

specs

add some logic in componentWillReceiveProps to keep moment.locale in sync with props.locale

misc

{optional: other useful info}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant