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 'body' of undefined #146

@alihemmatnia

Description

@alihemmatnia

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

                        }}
                      />

وقنی میخام ساعتو تنظیم کنم ارور بالا میاد

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