Skip to content
This repository was archived by the owner on Sep 9, 2021. It is now read-only.
This repository was archived by the owner on Sep 9, 2021. It is now read-only.

TypeError: Cannot read property 'object' of undefined #145

@alihemmatnia

Description

@alihemmatnia

hi

TypeError: Cannot read property 'object' of undefined
(anonymous function)
C:/Users/ali/Documents/erp/node_modules/react-datepicker-fa/dist/index.js:21010
21007 | }(_react.Component);
21008 |
21009 | Heading.propTypes = {

21010 | month: _react.PropTypes.object.isRequired,
21011 | isGregorian: _react.PropTypes.bool
21012 | };
21013 | Heading.contextTypes

my code:

state ={dateValue:moment()}

<DatePicker
isGregorian={false}
value={this.state.dateValue}
onChange={(value) => {
console.log(value);

                        this.setState({ dateValue: value });
                      }}
                    />

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions