element-hq / element-x-ios

Next generation Matrix client for iOS built with SwiftUI on top of matrix-rust-sdk.
https://element.io/labs/element-x
GNU Affero General Public License v3.0
410 stars 95 forks source link

RichTextEditor code block editing artefacts #1747

Closed stefanceriu closed 2 months ago

stefanceriu commented 1 year ago

Try editing a message that only contains a codeblock

1) Cancelling the editing leaves the cursor in the wrong position. Entering a character fixes it

Screenshot 2023-09-19 at 08 46 16

2) Delete everything within the code block before cancelling the edit. The codeblock background box remains in the composer

Screenshot 2023-09-19 at 08 47 04
alfogrillo commented 1 year ago
  1. should be fixed by https://github.com/matrix-org/matrix-rich-text-editor/pull/829
Velin92 commented 2 months ago

duplicate of https://github.com/element-hq/element-x-ios/issues/2656