Search error for Form in "Live-Preview" mode

Steps to reproduce

  • Switch to “Live-Preview” mode.
  • Create a form. To have a good test environment, this form should be long and have duplicate values.
  • Press “Ctrl+F” to turn on the search box, then search a value in the form.
  • Click a highlighted target value.

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

Y

Expected result

  • I could move the cursor to the highlighted target value.

Actual result

  • When searching, view mode switched to “Source-code” mode, the target values has been highlighted. [OK]
  • Clicked a highlighted target value, and the mode suddenly switched to “Live-Preview” mode, the cursor is after the form. [Wrong]

Additional steps and the result

To get more information, I did some additional steps and got some funny wrong.

  • When searching, view mode switched to “Source-code” mode, the target values has been highlighted. [OK]
  • Right-clicked a highlighted target value, mandatory move cursor to the value place, the view mode didn’t change. [OK]
  • While pressing the arrow key “down”, the page view moved up until it reached the top. After that, the arrow key “down” will let the cursor down as normal. [Wrong]
  • For “Source-code” mode and “Read” mode, there are no errors.

Environment

SYSTEM INFO:
Obsidian version: v1.8.9
Installer version: v1.8.9
Operating system: Windows 11 Pro 10.0.22631
Login status: not logged in
Language: zh
Insider build toggle: off
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: off
Plugins installed: 4
Plugins enabled: 0

RECOMMENDATIONS:
none


Additional information

I have a suggestion: add a switcher to let users have the “Source-code” view or the “Read” view when they are searching in “Live-Preview” mode. (Especially for form searching)
(It’s shameless to add a suggestion to a bug report, but since already here, and there are high connections. :slight_smile: )

what is a form?!?

Just the normal markdown form(or should say table?) like:

| Key | ValueA | ValueB |
| --- | ------ | ------ |
| a   | 111    | 222    |
| b   | 333    | 444    |
| c   | 555    | 666    |
| d   | 777    | 888    |
| e   | 999    | 000    |
| a   | 111    | 222    |
| b   | 333    | 444    |
| c   | 555    | 666    |
| d   | 777    | 888    |
| e   | 999    | 000    |
| a   | 111    | 222    |
| b   | 333    | 444    |
| c   | 555    | 666    |
| d   | 777    | 888    |
| e   | 999    | 000    |

Sorry for my English is a little rusty.