reactjs/react-modal
overlayRef and contentRef are undefined on componentDidMount
开放
#740 创建于 2019年2月22日
easygood first issuemaybe bugmissing documentation
仓库指标
- 星标
- (7,294 个星标)
- PR 合并指标
- (PR 指标待抓取)
描述
Summary:
overlayRef and contentRef are undefined on componentDidMount, but have the correct value on componentDidUpdate.
Steps to reproduce:
-
Set the overlayRef and contentRef prop on ReactModal.
-
console.log the value of overlayRef and contentRef inside componentDidMount.
-
The values will be undefined.
Expected behavior:
overlayRef and contentRef should hold the correct values on componentDidMount.