react-datepicker2 icon indicating copy to clipboard operation
react-datepicker2 copied to clipboard

TypeError: Cannot read property 'object' of undefined

Open alihemmatnia opened this issue 4 years ago • 0 comments

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 });
                      }}
                    />

alihemmatnia avatar Aug 22 '21 15:08 alihemmatnia