Closed MortezaFathnia closed 5 years ago
Please, follow issue report template, explain the exact issue and if applicable, leave the piece of code.
day not match with date
I can't replicate it. Everything seems fine with the latest release.
It seems strange !!!
Maybe I have mistake, I'll try share my code.
Are you sure module is working correct? please share your code or link
import React, { Component } from 'react';
import { DatePicker } from 'react-advance-jalaali-datepicker';
class UserRegister extends Component {
render() {
return (
<DatePicker
placeholder="تاریخ تولد"
format="jYYYY/jMM/jDD"
onChange={this.change.bind(this)}
id="datePicker"
preSelected={
'1398/04/03'
}
cancelOnBackgroundClick="App"
/>
)
}
}
export default UserRegister;
It's strange. The only issue is the cancelOnBackgroundClick
its value should be boolean, but that still work. There is nothing wrong with the code. Please update to 1.2.2 and see if it occurs again.
There is no other report of such an issue. If it's possible leave the url of this page here.
Issue report format contains: OS, browser name, version and other env parameters like library version. As I mentioned in first comment, please follow issue report format. It helps a lot.
@MortezaFathnia I close this issue as you have not replied for over 2 weeks. In case the issue is remained, reopen it.
this datepicker in week's day is set of last year, example 1398/04/02 is Saturday.