A-Kasaaian / react-advance-jalaali-datepicker

An advance Jalaali (shamsi, persian) datepicker containing multiple datepicker types such as, range datepicker
MIT License
87 stars 17 forks source link

why in days week have difference in new year? #23

Closed MortezaFathnia closed 5 years ago

MortezaFathnia commented 5 years ago

this datepicker in week's day is set of last year, example 1398/04/02 is Saturday.

A-Kasaaian commented 5 years ago

Please, follow issue report template, explain the exact issue and if applicable, leave the piece of code.

MortezaFathnia commented 5 years ago

2019-06-23

day not match with date

A-Kasaaian commented 5 years ago

I can't replicate it. Everything seems fine with the latest release.

A-Kasaaian commented 5 years ago

It seems strange !!!

MortezaFathnia commented 5 years ago

Maybe I have mistake, I'll try share my code.

MortezaFathnia commented 5 years ago

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;
A-Kasaaian commented 5 years ago

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.

A-Kasaaian commented 5 years ago

@MortezaFathnia I close this issue as you have not replied for over 2 weeks. In case the issue is remained, reopen it.