anza-xyz / anza-xyz/wallet-adapter
WalletMultiButton Gets Stuck and Redirects Repeatedly on Uninstalled Wallet Selection
- Ngôn ngữ chính
- TypeScript
- Star
- 2k
- Fork
- 1.1k
- Merge trung bình
- 10 giờ 19 phút
- Pull request đã merge (30 ngày)
- 3
Mô tả
**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
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.