Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to click the Connect Wallet button #3

Closed
imcharlessunday opened this issue Feb 13, 2023 · 7 comments
Closed

Unable to click the Connect Wallet button #3

imcharlessunday opened this issue Feb 13, 2023 · 7 comments

Comments

@imcharlessunday
Copy link

Hi, I'm unable to click the Connect Wallet button after refreshing the page, at 1:36:20 in the video tutorial. There seems to be something blocking the cursor from changing to pointer, and blocking the button from being clicked. Anyone else run into this issue?

PS: Interestingly enough, when I refresh the page and very quickly place my mouse over the Connect Wallet button, I am briefly able to click the button and open the Metamask Pop-up as usual. But, when the page is fully refreshed, the cursor goes back to the default arrow pointer, and I am unable to click the button.

Your help would be greatly appreciated

@aatif00002
Copy link

yess i am facing the exact same problem

@aatif00002
Copy link

please help me out

@aatif00002
Copy link

@adrianhajdin please consider it ....

@imcharlessunday
Copy link
Author

imcharlessunday commented Feb 19, 2023

Guys, I found a short-term solution to this by just adding the following to the index.css file in the react-app folder:

iframe {
  pointer-events: none;
}

There may be a better solution to this that involves updating react-scripts, adding resolutions or overrides (again) to the package.json file, and maybe even installing npm again — but I didn't have much success doing that without having to start the project all over again. So, hope this helps. Good luck!

@imcharlessunday
Copy link
Author

For reference, here is a link to the very same problem with more suggested solutions you can try:

facebook/create-react-app#11880 (comment)

@aatif00002
Copy link

aatif00002 commented Feb 19, 2023

iframe {
pointer-events: none;
}

thanks Charles it did work , but why u said it short term solution , will it stop working after a certain period ....
by the way again thank you so much for the help ...
@W3Charles

@imcharlessunday
Copy link
Author

No. Perhaps, I used the wrong word. It shouldn't stop working after a certain period, but it may not be considered "best practice". It basically disables all iframes. So, if you have another iframe that you want to work with within the app, you might have to find another workaround for that particular iframe again, that's all. But that shouldn't be a problem when creating this app. Hope that helps. Good luck

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

No branches or pull requests

2 participants