-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
Describe the bug
When selecting a wallet (e.g., Phantom) from the WalletMultiButton dropdown that is not installed in the browser (no extension), the button enters a "Connecting..." state and nothing happens. Subsequent clicks on the "Connect Wallet" button do not re-open the wallet selection modal; instead, they repeatedly redirect to the (e.g., https://phantom.app/download) install page or remain stuck, preventing the user from selecting a different wallet.
To Reproduce
1.Ensure no wallet extensions (e.g., Phantom, Solflare) are installed in the browser.
2.Use a React app with @solana/wallet-adapter-react-ui@^0.15.2 and a basic WalletMultiButton component.
3.Click the "Connect Wallet" button and select Phantom from the dropdown.
4.Observe the redirect to https://phantom.app/download.
5.Return to the app tab and click "Connect Wallet" again.
6.See that it redirects again or stays stuck instead of opening the wallet selection modal.
Expected behavior
The button should either:
1.Automatically re-open the wallet selection modal after the initial redirect or failure, allowing the user to select a different wallet.
2.Display an error message (e.g., "Wallet not installed, choose another") and keep the modal open without redirecting on subsequent clicks.
Screenshots
Desktop (please complete the following information):
- OS: Windows 11
- Browser: chrome
- Version 140.0.7339.128 (Official Build) (64-bit)
Additional context
I’d like to contribute a fix and am happy to fork the repo and submit a PR