Skip to content

Conversation

@0xAlunara
Copy link
Collaborator

@0xAlunara 0xAlunara commented Nov 8, 2025

Prevent the modal from rendering while connecting with WalletConnect to allow input in the "Search wallet" field. This change addresses a tabIndex issue caused by the MUI Dialog component. There's a big comment block explaining why I've decided to fix the issue this way.

@vercel
Copy link

vercel bot commented Nov 8, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
curve-dapp Ready Ready Preview Comment Nov 8, 2025 4:13pm
curve-dapp-storybook Ready Ready Preview Comment Nov 8, 2025 4:13pm

@0xAlunara 0xAlunara changed the title Fix input issue in WalletConnect search modal fix: can't enter input in search wallet when connecting to walletconnect Nov 8, 2025
The most reliable fix is to skip rendering this modal while WalletConnect
is connecting, rather than patching the tabIndex via a flaky JavaScript hack.
*/
...(isConnectingType === 'walletConnect' && { display: 'none' }),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The magic string isn't ideal

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not a magic string, it's the built in string type literal from wagmi! 😔

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's why enums are better 🤓

@0xAlunara 0xAlunara merged commit 46a3409 into main Nov 10, 2025
16 checks passed
@0xAlunara 0xAlunara deleted the fix/cant-type-search-wallet-in-wc branch November 10, 2025 13:04
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.

4 participants