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

× TypeError: Cannot read property 'body' of undefined #146

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

× TypeError: Cannot read property 'body' of undefined #146

alihemmatnia opened this issue Aug 22, 2021 · 0 comments

Comments

@alihemmatnia
Copy link

×
TypeError: Cannot read property 'body' of undefined
getOffsetParent
C:/Users/ali/src/getOffsetParent.js:28
25 | // }
26 | // 统一的 offsetParent 方法
27 | const doc = utils.getDocument(element);

28 | const body = doc.body;
| ^ 29 | let parent;
30 | let positionStyle = utils.css(element, 'position');
31 | const skipStatic = positionStyle === 'fixed' || positionStyle === 'absolute';

my code:

<DatePicker
class="form-control"
className="form-control"
timePicker={true}
isGregorian={false}
value={this.state.dateValue}
onChange={(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