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

[bug] Modal shrinks when select wallet to connect #3125

Open
Philword opened this issue Oct 19, 2024 · 1 comment
Open

[bug] Modal shrinks when select wallet to connect #3125

Philword opened this issue Oct 19, 2024 · 1 comment
Labels
bug Something isn't working needs review

Comments

@Philword
Copy link

Link to minimal reproducible example

https://test.astroarmadillos.io/

Summary

When open modal I have option to select wallet to connect to. When I click on wallet it shrinks and I'm not able to connect.
I was able to connect only when activated email connect (emailShowWallets: true, and email: true) and after input email and then canceled connecting, click on metamask wallet it started working.
How to solve it?
Url with website were I have this issue provided.
https://test.astroarmadillos.io/

IMG_3298

List of related npm package versions

import { createAppKit } from '@reown/appkit/vue'
import { EthersAdapter } from '@reown/appkit-adapter-ethers'
import { mainnet, polygon } from '@reown/appkit/networks'
import { useAppKitProvider, useAppKitAccount } from "@reown/appkit/vue"
import { BrowserProvider } from 'ethers'

const modal = createAppKit({
adapters: [new EthersAdapter()],
networks: [polygon],
metadata,
projectId,
themeMode: 'light',
features: {
analytics: false,
email: false, // default to true
socials: false,
emailShowWallets: false,
swaps: false,
}
})

modal.switchNetwork(polygon)

@Philword Philword added bug Something isn't working needs review labels Oct 19, 2024
@Philword
Copy link
Author

If anyone ever face with the same issue on NUXT3 here is the solution:

put this after initiate createAppKit:

if (process.client) {
  localStorage.setItem('@appkit/connected_connector', 'WALLET_CONNECT');
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs review
Projects
None yet
Development

No branches or pull requests

2 participants
@Philword and others