Group view Sort by dropdown state is misleading when filtering by name
Summary
The Sort by dropdown at the group's page shows wrong selected item after typing in the Seach by name field
Steps to reproduce
- Navigate to https://gitlab.com/gitlab-org
- Set the
Subgroups & projectssorting toLast created(or, actually, any non-default sorting) - Start typing a project's name in the
Search by namefield - The list will be updated according to your
Search by nametyping and the dropdown will displayNameitem as selected. - But when you open it, it will be still set to
Last created.
Example Project
(If possible, please create an example project here on GitLab.com that exhibits the problematic behavior, and link to it here in the bug report)
(If you are using an older version of GitLab, this will also determine whether the bug is fixed in a more recent version)
What is the current bug behavior?
The Sort by dropdown shows the last selected item after typing in the Seach by name field
What is the expected correct behavior?
The Sort by dropdown shows Name as the last selected item after typing in the Seach by name field
Relevant logs and/or screenshots
Output of checks
This bug happens on GitLab.com
Possible fixes
(If you can, link to the line of code that might be responsible for the problem)
