[UI]Uploads follow directory change

Hello,

Seafile Server Version: 7.0.5 - Odroid

Folder structure example:

FolderA
|- FolderB

I was uploading files to FolderB. Then clicked on FolderA.

Behaviour
Files were displayed in the FolderA. But upload was initiated in FolderB.
No impact on the backend: files were correctly saved in FolderB.

Expected behaviour
Uploaded files should not appear in the current folder, unless the folder is where the upload is originated.

Hope it is clear