Closed afsanefdaa closed 5 years ago
Add in constructor method this line:
moment.loadPersian({ dialect: 'persian-modern' });
for example
constructor(props) {
super(props);
moment.loadPersian({ dialect: 'persian-modern' });
this.state = {
value: moment('1396/7/6', 'jYYYY/jM/jD'),
};
}
@afsanefda I think you should add this to document.
This is how I used this Datepicker :
When I change the date by clicking on the first page everything is fine! But after changing the year by the top arrows and change the month It throws this error! This happens when isGregorian as false but as soon as I change it into isGregorian as true it's no longer throws an error!