Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions migrateToV3.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Once the update has finished, try your app.
It might seem to be working ok but [some props have changed](#whats-new-in-react-datetime-v3) and, even if they don't break your app, your pickers might be behaving a little bit differently.

We should better search for the following props in our code and replace them as recommended in the points below:
* Search for `defaultValue` prop in your datetime code. Remame it to `initialValue`.
* Search for `defaultValue` prop in your datetime code. Rename it to `initialValue`.
* Search for `defaultViewDate` props and replace them with `initialViewDate`.
* Search for `viewMode` props and replace them with `initialViewMode`.
* Search for `disableCloseOnClickOutside`. If you are using it, replace it with `closeOnClickOutside={false}`.
Expand Down Expand Up @@ -57,4 +57,4 @@ Version 3 is a big refactor of react-datetime. We have tried to not to change th
## Contribute
react-datetime is made by the community for the community. People like you, interested in contribute, are the key of the project! 🙌🙌🙌

Have a look at [our contribute page](contribute-home.md) to know how to get started.
Have a look at [our contribute page](contribute-home.md) to know how to get started.