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

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

Open
alihemmatnia opened this issue Aug 22, 2021 · 0 comments
Open

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

alihemmatnia opened this issue Aug 22, 2021 · 0 comments

Comments

@alihemmatnia
Copy link

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 });
                      }}
                    />
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant