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

Description
×
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 });
وقنی میخام ساعتو تنظیم کنم ارور بالا میاد