DSpace / dspace-angular

DSpace User Interface built on Angular.io
https://wiki.lyrasis.org/display/DSDOC8x/
BSD 3-Clause "New" or "Revised" License
123 stars 394 forks source link

User profile menu remains open after menu entry is selected #3021

Open eligit22 opened 2 months ago

eligit22 commented 2 months ago

Describe the bug After logging in DSpace v.8, after opening the user profile menu to select one of the available entry to browse to, for instance, the MyDSpace or the Profile page, the menu doesn't close automatically after the click, and it remains open also after landing on the chosen page

To Reproduce Steps to reproduce the behavior:

  1. Log in to DSpace
  2. Open the user profile menu
  3. Select "MyDSpace"

Expected behavior After logging in, I open the user profile menu to select one of the available entry to browse to ( for instance, "MyDSpace"), and the menu closes automatically after the click while landing on the chosen page

Related work Link to any related tickets or PRs here.

https://github.com/DSpace/DSpace/assets/122300428/90467a96-da98-40e7-aebe-e5f8e15e2677

tdonohue commented 2 months ago

I'm able to reproduce this on both https://sandbox.dspace.org (running pre-8.0) and https://demo.dspace.org (running 7.6.x).

So, this appears to affect both 7.6.x and 8.x.

I agree the ideal behavior would be for this User menu to close after you click a link. So, I'm pulling this over to our bug-fix board in search of a volunteer. But, it's a relatively minor issue.

alanorth commented 2 months ago

Thanks @eligit22. I'm moving this issue to the dspace-angular issue tracker, since it is a frontend bug.

Regarding the bug itself, I've seen "sticky" menus from the main navbar dropdowns as well, though I don't know how to reproduce it. It happens to me periodically when using our DSpace 7.6.1 repository.

atarix83 commented 1 week ago

@tdonohue @hostle83

4science is interested in working on this task and the related one https://github.com/DSpace/dspace-angular/issues/3085

Estimation is about 6h