react-modal-dialog icon indicating copy to clipboard operation
react-modal-dialog copied to clipboard

Way to add a /route to URL tag when modal is opened.

Open dongarchive opened this issue 6 years ago • 0 comments

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>
						}

dongarchive avatar Oct 23 '17 18:10 dongarchive