Skip to content

Upgrade guide from version 1.x to 2.x

Wojciech Maj edited this page Oct 12, 2018 · 1 revision

Good news! If you didn't use custom styles, you're good to go. If you have custom styles, check out the table below for updated class names.

Changed class names

Class names were updated to make it clear what is their purpose.

Removed class name Replaced with class name Comments
react-datetime-picker__button react-datetime-picker__wrapper A <div /> element wrapping all input groups, calendar button and clear button.
react-datetime-picker__button__input react-datetime-picker__inputGroup A <div /> element wrapping all inputs.
react-datetime-picker__button__input__input react-datetime-picker__inputGroup__input A <input /> element for picking hour, minute or a second.
react-datetime-picker__button__input__divider react-datetime-picker__inputGroup__divider A <div /> element wrapping a divider between two inputs, usually ..
react-datetime-picker__button__icon react-datetime-picker__button Calendar button and clear button.
Clone this wiki locally