HELP: The search box loses focus

Joplin for Desktop 2.3.5 (prod, win32)

Problem recurrence

  1. Import test.jex
  2. Enter "-" in the search box
  3. Press the backspace key to delete, and the search box will lose the input focus

If you can reproduce the problem, please help submit the problem on GitHub, because my English is too bad to make complex statements. Thank you

Please help verify this problem. The problem of losing focus in the search box occurs from time to time, which is very distressing. Thank you

1 Like


Hi, I just confirmed that I see the same thing on Mac Joplin 2.4.5 (prod, darwin)

If I click the search box, and then delete all the characters, the search box loses focus. It puts the application back to the last notebook that I was in.

I have a feeling this is because without anything in the search box there is no longer a list of notes to display and so it goes back where you were.

I am able to work around this issue by using Command+Shift+F to bring the search box back into focus without needing to click.

For what it's worth, I feel like your description was clear in English. :slight_smile: You can probably submit as is, but it always helps to write out what you want to happen (and obviously the devs will choose whether it is worth fixing or causes other issues).

OS: Kubuntu 21.04 x86_64
snap package, clean installation+import suggested .jex
Joplin 2.3.5 (prod, linux)

Was able to reproduce the bug in the environment. It also can be reproduced with space (input only one space --> delete it --> focus is lost).

At the same time I wasn't able to reproduce the conditions required to cause the bug. I tried reproducing on the "dirty" installation with 10k+ notes but it doesn't work (same environment as stated at the top except it is not the snap package, provided .jex wasn't imported).

I tried to collect some logs to catch the associated console output but wasn't able to. The next lines look suspicious but I'm not sure :

  • [Violation] Forced reflow while executing JavaScript took Nms

  • [Violation] Added non-passive event listener to a scroll-blocking 'touchmove' event. Consider marking event handler as 'passive' to make the page more responsive.

Here's the log for the next actions performed: launch Joplin, reproduce the bug via provided steps (make sure that focus is lost), exit Joplin
search-loses-focus2.log (99.6 KB)

@laurent Can you help me look at this problem? thank you


Please create a bug report on GitHub. Bugs on the forum aren't tracked.

The bug has been submitted in GitHub. I hope the problem can be solved. Thank you

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.