Wallet connect popup doesn't close after connect

I use

await enableWeb3({provider: 'walletConnect'})

to connect web3 with my wallet. But after connect, the popup qrcide is not close. Please help

Can you reload the page and keep your connection? Otherwise if you can’t find a solution just target the close button element and programmatically click it.

I reload the page and the connection is still there. So wallet connect is not automatic close is right?

Walletconnect ise expected to close automatically so far you did everything properly.
You can enable web3 in a useEffect function and without the await keyword in front of it