Middle click to open note leaves empty pane open too

In the gif below I open a note from the sidebar with normal click then with middle click.
Similar to this with undoing close pane.


I don’t consider this a bug. With middle click you are asking to open in a new tab.