Incorrect caret placement in note title in RTL languages

Steps to reproduce

  1. Open the iPad or iPhone app of Obsidian 1.6.2 (142)
  2. Create a new note
  3. Type the title in Arabic
  4. Notice how the Caret is always at the start of the text

Did you follow the troubleshooting guide? [Y/N]

Yes (sandbox vault, community plugins turned off, no CSS snippets installed)

Expected result

The caret should follow the last character.

Actual result

The caret stays at the start

Environment

SYSTEM INFO:
Operating system: ios 17.5.1 (Apple iPad14,3)
Obsidian version: 1.6.2 (142)
API version: v1.6.2
Login status: logged in
Catalyst license: none
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: on

RECOMMENDATIONS:
none


Additional information

  • This only happens for the note’s title. The note body itself is unaffected.
  • Despite the bug report’s title. I’ve only tested this in Arabic, but I suspect this happens in all RTL languages. It might be a good idea to verify this to make sure it’s not an Arabic-specific bug.

Here’s a 30-second clip explaining the issue (captured on iPadOS, but I also reproduced this on iPhone)

Also posted on X if you’re suspicious of random Gdrive links :slight_smile:
https://x.com/fawaztsa/status/1799319970045927468

Interestingly, this does not apply for MacOS, only for iPadOS and iOS

Thanks, will investigate this.