Skip to content

[Bug]: connectWallet with autoSelect and disableModal doesn't works if call it more than one time #1032

@applicature-dlitvinov

Description

@applicature-dlitvinov

Current Behavior

For example, developers don't want to use a native modal for the connection wallets.
For example needs to connect only with WalletConnect after clicking on the Connect button, without any modals.
You will use the following code after the Connect button is clicked:

onboard.connectWallet({
  autoSelect: {
    label: 'WalletConnect',
    disableModals: true
  }
})

When the user clicks on the Connect button the first time the WalletConnect modal with QR code opens, so it works as expected.
If the user clicks on the close button and clicks on the Connect button again, nothing happens.

Look at the video:
https://user-images.githubusercontent.com/101503007/171252895-405d42fb-c529-4f81-8066-43bcb2b66830.mov

Expected Behavior

When the user clicks on the Connect button the second time if the previous time connection was canceled, the WalletConnect modal with QR code should be opened.

Steps To Reproduce

No response

Onboard Version

2.2.9

Node Version

16.15.0

What browsers are you seeing the problem on?

No response

Relevant log output

No response

Anything else?

No response

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions