ucd-library / aggie-experts

Publicly reported feedback and issues for Aggie Experts
https://ucd-library.github.io/aggie-experts/
MIT License
1 stars 2 forks source link

My Account dropdown stays open when it should close #419

Closed wrenaria closed 12 hours ago

wrenaria commented 1 month ago

The "My Account" dropdown currently stays open unless you click "My Account" again. This is not expected nor desired behavior.

The dropdown should close if you do any of the following:

Video example of bug (Mac OS, Chrome):

https://github.com/ucd-library/aggie-experts/assets/17831969/ca697f73-8296-4e1d-ab81-382f06c6da53

UcDust commented 1 month ago

The same behavior exists for the search dropdown, and header navigation 'clicks' in mobile view. I can address that in this issue as well.

The problem is the component doesn't close by default in SPAs; since page navigation doesn't trigger a new network request, the element remains in the previous state.