# Bug OP-15334 - Project selector loses current project switching to "Favorites" selection and then back to "All"

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-15334

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 14.5.0 |
| Observed in versions | 14.2.0 |
| Sprint | 14.5.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 14.2.x |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable | Oliver Günther |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

1.  Login as a user who is member of several project

2.  Have at least one favorite project

3.  Go to any project

4.  Open the project selector dropdown
    
    1.  Notice that the current project is scrolled to and highlighted

5.  Switch to the "Favorites" tab within the project select 

6.  Switch back to the "All" tab within the project selector

### What is the buggy behavior?

  - The current project isn't scrolled to nor highlighted

### What is the expected behavior?

1.  Project selector is scrolled to current project 

### Screenshots and other files

<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/112233/content">

### Environment information

**OpenProject version**

*14.1.2*

**Browser**

- [ ] Chrome
- [x] Firefox
- [ ] Safari
- [ ] Mobile Safari
- [ ] Other (please specify)
