TelegramMessenger / Telegram-iOS

Telegram-iOS
6.33k stars 1.66k forks source link

Mini-App Mobile keyboard does not restore page properly when input loses focus on iPhone #1472

Open Glider-of-chaos opened 2 months ago

Glider-of-chaos commented 2 months ago

Checklist

Description

Telegram iOS mini-app - when virtual keyboard is dismissed due to input field losing focus, lower half of the screen remains blank as if the keyboard is still there.

Expected Behavior

Page should move down the screen reclaiming space freed by the virtual keyboard

Actual Behavior

Page does not move once keyboard goes away

Steps to Reproduce

  1. Open following page from mini-app: https://glider-of-chaos.github.io/bug-telegram-bot-input/
  2. Click on the input field in the lower part of the page (virtual keyboard appears)
  3. Click on any other part of the page to dismiss virtual keyboard.

Screenshots and Videos

https://github.com/user-attachments/assets/fa5291ad-03cb-43e1-97f0-219d3745bb0a

Environment

Device: iPhone SE 2020

iOS version: 17.5.1

App version: 10.15 (29365)

Glider-of-chaos commented 2 months ago

Potentially seems similar to #1410 but symptoms are a bit different.

radzihcake commented 1 month ago

Same for me

bane-the-dev commented 2 weeks ago

same here, need a fix asap... keyboard on mini app is virtually unusable