Skip to content

bug fix: prevent Link onClick firing when modal is clicked#60

Open
stellard wants to merge 1 commit into
davidmfoley:masterfrom
stellard:master
Open

bug fix: prevent Link onClick firing when modal is clicked#60
stellard wants to merge 1 commit into
davidmfoley:masterfrom
stellard:master

Conversation

@stellard

@stellard stellard commented Sep 7, 2020

Copy link
Copy Markdown

Hi.

I was having issue with the onClick handler for the Link being fired when I clicked the open modal.

This was especially a problem when I tried to use the closeModal function within the Modal since immediately after it was called, the Link onClick was also fired sending the router right back to the modal path.

Hope this helps other people.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant