Incorrect focus shifting in sidebar

WHAT IS THE BUG

Sometimes, there is a little delay of the focus shift among the notes in sidebar. When clicking a note without focus, the focus does not shift to the currently opened page, and it just stays at the last one.

After I reload AnyType, this bug disappears. I can not reproduce this bug for now. I just remember before this I upload a picture as icon in a note and there is no change. After uploading it again, it works, but this bug shows. (can not guarantee these two are closely related)

HOW TO REPRODUCE IT

  1. Click a note in sidebar, this note gets the focus.
  2. Click another note in sidebar, can see the focus does not shift.
  3. Click another note in sidebar again, can see the focus shift to the last clicked note, which means there is always a delay (just one).
  4. Here is a video for that

THE EXPECTED BEHAVIOR

Focus shifts instantly after clicking a note in sidebar.

SYSTEM INFORMATIONS

  • OS:
    macOS Monterey 12.5.1
  • Device:
    MacBook Pro 13-inch
  • Anytype Version:
    0.29.0

ADDITIONAL CONTEXT

I will double-check how to reproduce this bug, and figure out the main factor. There is a little chance that the focus shifts correctly, which can be seen in the video (00:15 – 00:19, subpage of note “AnyType”).

This issue has been added to our issue tracker and was received by the Development Team.

Not reproducible as the sidebar doesn’t have this function anymore.