Search box behavior

Operating system

Windows

Joplin version

3.7.21

Desktop version info

Joplin 3.7.21 (prod, win32)

Device: win32, Intel(R) Core(TM) Ultra 9 185H
Client ID: cc43521629494be58f156749eaedda92
Sync Version: 3
Profile Version: 54
Keychain Supported: Yes
Alternative instance ID: -
Sync target: Joplin Cloud
Editor: Rich Text

Revision: e41516e

Note list (Preview): 1.1.0
Whereabouts: 0.3.1
Wrapped Line Indentation: 1.0.5

What issue do you have?

If I type a little bit slowly into the search box, it behaves quite puzzlingly. Here's what I see: I start typing in the search box, I get a couple letters typed then pause very briefly - the seach happens (which is somewhat annoying but ok), but then the type-in cursor jumps to the body of the first note that the search found (which is some random note because I had just barely starting typing the search term), then I keep typing the rest of the search term, but the typed letters go into that randomly found note body instead of into the search box. That is extremely annoying. Is there some setting for this, or am I doing something wrong (besides typing slowly)?

There's a few things that might cause this:

1. This can sometimes be caused by plugins. If the Rich text editor is active and a plugin calls editor.execCommand on note switch it can cause behavior like this

Looking at your installed plugins I don't think any of them would cause this issue (unless the whereabouts plugin is at an old version). Of the installed plugins, only whereabouts calls editor.execCommand on note switch, but it specifically avoids doing so when the rich text editor is active: Cursor moves from note title to note body on its own when using Rich Text Editor · Issue #1 · pmslava/joplin-plugin-whereabouts · GitHub; I use that plugin myself and can't reproduce the behavior)

You could make sure that you have that plugin at the latest version, and if that doesn't help try with all plugins disabled and re-enable them one at a time.

2. There's also a joplin bug where similar sounding behavior can occur in huge databases: Keypresses are sometimes ignored when searching · Issue #16383 · laurent22/joplin · GitHub, Desktop: Resolves #16383: Keypresses are sometimes ignored when searching by Rygaa · Pull Request #16686 · laurent22/joplin · GitHub

Ah, maybe it was Whereabouts. I updated it recently, and now I see the annoying behavior is gone. Thanks for taking time to answer.