Post author field: when search is enabled, it shows some wrong results #32127
Labels
[Package] Editor
/packages/editor
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
Description
Issue 1: Author search field don't show the right results (properly retrieved by the API) on the top of the list.
Issue 2: When you scroll down to the end of this list, you can see the results, but you can't select them.
It may have some relation with this pull request: #5921
Step-by-step reproduction instructions
Expected behaviour
By typing the name of the user you're looking for, the first results would be the users retrieved by the API and you can select them.
Actual behaviour
By typing the name of the user you're looking for, the first results are not the users retrieved by the API. If you scroll down to the bottom of the list, you can find the results of the search, but, you can't select them - it kind of "jump" to the begining of the list when you hover them (as shown in the screen recording below).
It only happens when the author field is a text field, not select (as far as I realized, this field is shown when there's more than 1000 users in the list).
Screenshots or screen recording (optional)
WordPress information
WordPress version: 5.7.2 (also happening with previous versions)
Gutenberg version: N/A
Are all plugins except Gutenberg deactivated? Yes - I made some tests with all plugins deactivated - it still happens.
Are you using a default theme (e.g. Twenty Twenty-One)? Yes
Device information
Device: Desktop
Operating system: Windows 10
Browser: Tested on Chrome and Firefox.
The text was updated successfully, but these errors were encountered: