reactjs/react-modal
Voir sur GitHuboverlayRef and contentRef are undefined on componentDidMount
Open
#740 ouverte le 22 févr. 2019
easygood first issuemaybe bugmissing documentation
Métriques du dépôt
- Stars
- (7 294 stars)
- Métriques de merge PR
- (Aucune PR mergée en 30 j)
Description
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.