element-ios icon indicating copy to clipboard operation
element-ios copied to clipboard

Submitting text leaves chat content blank (iPad only)

Open bolaurent opened this issue 3 years ago • 9 comments

Steps to reproduce

  1. Where are you starting? What can you see?
  2. What do you click?
  3. More steps…

I have the app installed on iPad. IPadOS 16.2. Element v 1.9.14

I have a chat open with a friend.

If I enter text and hit submit, the contents of the chat disappear, as if I had no chat selected. In order to re-display the content, I can select a different chat, then return to this chat.

Screenshot 2022-12-30 at 5 07 53 PM png

This bug does not occur on iPhone nor on MacOS app.

Outcome

What did you expect?

After I submit some text to a chat, the chat should remain visible, with my text at the bottom, so that I can see my correspondent’s reply (which they will type next).

What happened instead?

The chat is blank. It can be rendered correctly if I select a different chat, then re-select this chat.

Your phone model

IPad Pro 11 inch 3rd Generation

Operating system version

16.2

Application version

1.9.14

Homeserver

Matrix.org

Will you send logs?

Yes

bolaurent avatar Dec 31 '22 01:12 bolaurent

I have submitted logs

bolaurent avatar Dec 31 '22 01:12 bolaurent

Thanks for this report @bolaurent. I have attempted to reproduce this issue on my side but am unable to do so. Could you provide more information about your set up and what you do to reproduce it? It looks like you have a hardware keyboard attached. When you say "hit submit" do you mean tapping the send button or pressing return on the keyboard (or does it happen for both?). Also do you have the new Rich Text Editor enabled?

pixlwave avatar Jan 12 '23 13:01 pixlwave

Wow, I had not even guessed it might be the keyboard. I use the Apple Magic Keyboard, and I almost always use it rather than on-screen keyboard.

And yes! The problem does not occur if I remove the iPad from the keyboard.

If I use my finger to select a chat, then the keyboard to enter some text, then my finger to press the submit button, the problem occurs.

If I remove iPad from keyboard, do the same as above except use on-screen keyboard, the problem does not occur.

Sent from my iPad

On Jan 12, 2023, at 5:28 AM, Doug @.***> wrote:



Thanks for this report @bolaurenthttps://github.com/bolaurent. I have attempted to reproduce this issue on my side but am unable to do so. Could you provide more information about your set up and what you do to reproduce it? It looks like you have a hardware keyboard attached. When you say "hit submit" do you mean tapping the send button or pressing return on the keyboard (or does it happen for both?). Also do you have the new Rich Text Editor enabled?

— Reply to this email directly, view it on GitHubhttps://github.com/vector-im/element-ios/issues/7215#issuecomment-1380356818, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAOBFLUMYNKTUFM3TTRGWEDWSABHLANCNFSM6AAAAAATNINKOI. You are receiving this because you were mentioned.Message ID: @.***>

bolaurent avatar Jan 13 '23 02:01 bolaurent

Also, I have just realized. If I send a message, resulting in non-rendered message panel, then switch focus to another app, and switch back, the message panel is correctly rendered.

bolaurent avatar Jan 13 '23 03:01 bolaurent

I can reproduce this issue with the latest ios version on ipad with the magic keyboard. Is there any info I can provide that would help debug?

mangas avatar Jan 22 '23 15:01 mangas

I can also reproduce this issue on M2 iPad Pro 12.9 inch, latest iPadOS version, with magic keyboard.

I suspect this has something related to the on screen keyboard margin size continuously growing, even if the on screen keyboard does not exist, resulting in blank screen (because the margin size is too big, and there are no space to display the actual chat’s content) To back up this suspect, I can replicate some cases when the chat’s content is partially visible, like few lines, before completely disappearing due to the excess margin.

Mnkai avatar Jan 27 '23 05:01 Mnkai

I can also reproduce the error on 11” iPad Pro with A12Z chip, using a Keychron K8 keyboard. Latest version of iPadOS & Element.

halemmor avatar Sep 18 '23 16:09 halemmor

I can reproduce this bug on both iPad Pro 2018 (A12X) and 2023 (M2) as well. Tested with Smart Keyboard Folio, Magic Keyboard, Logitech Keyboard Folio, and some random Bluetooth keyboards and the problem persists. This issue should be associated with any external keyboard. I hope this can be fixed as soon as possible, since this is the main obstruction preventing me to use element on iPad😢

Disabling Stage Manager seems to resolve the issue. When it is disabled, I don’t get the issue. After re-enabling it, the issue is intermittent. So not sure what exactly about Stage Manager is causing the issue to occur, but it seems to consistently go away with it disabled for me.

halemmor avatar Sep 03 '24 06:09 halemmor