Releases: talentedandrew/react-modern-datepicker
Edit Date Manually
Feature
Now you can edit the date manually from the input field by enabling the allowEdit
prop.
Bug fix
#19 Fixed bug
Support for new Date()
- `new Date()` or any valid javascript date is now supported
- similarly now you can also use `new Date()` or any valid javascript date for date , minDate and maxDate along with `dayjs()` date object
Replaced momentjs with dayjs, and added support for themes
Momentjs is replaced with Dayjs because of the bundle size. Support for locale also deprecated. Now you can customize your datepicker with your own themes.
onFocus and onBlur event handlers added
Description
1.) Added onFocus and onBlur event handlers.
2.) Closing calendar on date select.(not on month or year select)
Now you can specify the language you want to show the calendar in and you can also add a label to the datepicker
Specifications
Now you can specify the language you want to show the calendar in and you can also add a label to the datepicker using the the props label
and lang
. Now, you can also style your icon using the iconClass
prop and also style the label using labelClass
prop.
Breaking CHanges
N.A.
Contributors
Now you can supply id to the input element
Specification
Now you can supply id to the input elements by passing a prop id
to the ModernDatepicker
component.
Breaking Changes
N.A.
Contributors
Added feature to specify minimum date or maximum date
Description
Added two props maxDate
and minDate
, for providing minimum date and maximum date respectively.
Breaking Change
N.A.
Fixed year navigation
Description
Fixed the navigation of year.
Breaking Change
N.A.
Add your own css
Specification
Now, you can add your own css and there is an option for adding icon also.
Breaking Changes
N/A