Telegram-Mini-Apps / issues

Centralised storage of platform issues and enhancement proposals.
8 stars 1 forks source link

Input fields not working after displaying the telegram wallet page on Android #30

Open waikit-vxreal opened 1 month ago

waikit-vxreal commented 1 month ago

Platform

Select platforms where this bug is reproducible:

Describe the bug

Text inputs are not working after the connect telegram wallet page is displayed. Reloading the page doesn't help (unless we close the mini app and reopen it).

To Reproduce

Steps to reproduce the behavior:

  1. Consider the following simple website with a simple input and a TON connect button (using React).
import { TonConnectButton, TonConnectUIProvider } from '@tonconnect/ui-react';

function Home() {    
    return (
        <TonConnectUIProvider manifestUrl={new URL('tonconnect-manifest-test.json', window.location.href).toString()}>
            <input />                
            <TonConnectButton />
        </TonConnectUIProvider>
    );
}

The inputs are working as usual now.

  1. Click on "Connect Wallet" and select "Open Wallet in Telegram". (Connecting to another wallet seems OK, e.g. ,TONkeeper)

  2. Connecting the wallet is not necessary. Simply close it and get back to the mini app.

  3. The inputs are not working. Sometimes, the Android keyboard is not appearing. Even when the keyboard is shown, typing is not working.

Expected behavior

Users can type in the inputs.

The same error happens for textarea as well. Tested on iOS and Desktop. Both are working properly. Also tested on Pixels. Not working as well. (1. Try connecting to telegram wallet (under Mints). 2 Find a text input under "Squads" => "New Squad")

TestKeeper commented 1 month ago

Reproduced this too.Telegram for Android

deadrime commented 1 month ago

+1 i also reproduce this bug when disconnect and then connect via ton space wallet