react-modal-dialog
react-modal-dialog copied to clipboard
Way to add a /route to URL tag when modal is opened.
Is there a way for me to add a parameter string eg. https://github.com/qimingweng/react-modal-dialog/${PARAMETERHERE} when the modal is closed so I can link to the modal.
This would probably need to set the state of the modal to open upon going to the specified link.
I've added an anchor tag but it only adds it to the URL, when I go the URL it doesn't show the modal in the open state.
Thank you.
{
<ModalContainer onClose={this.handleCloseRestrictedCountries}>
<ModalDialog className={_ModalDialog} onClose={this.handleCloseRestrictedCountries}>
<a id="restricted_countries">
<RestrictedCountries
excludedCountries={excludedCountries}
/>
</a>
</ModalDialog>
</ModalContainer>
}