Desktop: Possible regression in 3.3.0: Search box loses focus when typing

Created on 7 Feb 2020  路  9Comments  路  Source: standardnotes/desktop

I think there is a regression in the 3.3.0 Desktop App:

When typing a search query into the search box I can only type in 2 or 3 characters and the search box loses focus:

  1. Select any note
  2. Focus search box
  3. Start typing a string thats not in this current note but in another note
  4. Once the string starts matching the other note the search box looses focus

Most helpful comment

Fixed in 3.3.1, deploying shortly.

All 9 comments

Issue occurs on other machine as well (both macOS 10.15 Catalina). I did verify that this is a regression introduced in 3.3.0. Issue does not occur on 3.0.25.

What editor does the other note use? This can happen if the editor requests auto-focus. It will take away from focus the search box. This is a long-standing issue which I haven't found a good solution to.

I experience the same problem (Ubuntu Linux 19.10, Advanced Markdown Editor) - search is almost unusable - always loses focus, however, it worked on previous versions, incl. 3.0.25.

EDIT: Steps to replicate:

  1. Create a new note - name: loremipsum, content: LOREMIPSUM
  2. Create a new note, name: ipsumlorem, content: IPSUMLOREM
  3. Display the ipsumlorem note.
  4. Click to the search field, start typing: loremip - impossible, it will lose focus after typing first 5 chars (lorem). Try the same with typing only ip.

PS: Except the AME editor, i have Quick Tags and Folders extensions enabled.

Issue occurs with just the Plain Editor as well.

@sbocinec this is only when using non-plain editor correct? Because I tried with just plain editor and couldn't replicate.

@christianhans are you sure it happens with plain editor only? I would be surprised. If at any point in your search a note appears that uses an external editor, focus may be hijacked. Perhaps the solution to this then is for the app to not auto-select any notes while searching.

cc @baptiste-grob

@mobitar I use Advanced Markdown Editor as a default editor, but i tried following:

  1. Open the app
  2. Change the first note that is on the list (Sort by Title), from the AME to the Plain Editor. Note down a word that appears in this note (e.g. fitness)
  3. Change to the second note on the list (in my case a TokenVault type note)
  4. Start typing to the search field: fit Here it loses focus, displays the content of the first note, I'm unable to finish typing remaining ness (searching for word fitness)

Does this help? Let me know if you need anything else to try

Ahh, I see it now. Yup, that's no good, thanks. Will get this fixed.

Fixed in 3.3.1, deploying shortly.

I confirm the fix is working. @mobitar thanks very much for the prompt fix

Was this page helpful?
0 / 5 - 0 ratings

Related issues

technotherion picture technotherion  路  6Comments

dymdipi picture dymdipi  路  5Comments

Eduardo06sp picture Eduardo06sp  路  5Comments

dergigi picture dergigi  路  4Comments

ErikBjare picture ErikBjare  路  5Comments