When selecting a file in the sidebar, that is the first within a folder, the folder collapses on mouse-up since the newly opened file pushes the entire file tree down and puts the folder underneath the cursor. The folder should remain open and not collapse.
I can include a short screencast if needed to show the incorrect behaviour.