Page MenuHomePhabricator

When clicking on a just-initialized lookup component which has an existing value, don't show "No results found"
Closed, ResolvedPublicBUG REPORT

Description

Description

When loading an edit page and clicking on a Reference field (uses cdx lookup), even though it has a value, it shows the dropdown "No results found"

We should:

  • either show a relevant value, or
  • don't show "No results found" dropdown

no-results-found.gif (761×622 px, 202 KB)


Completion checklist

Event Timeline

gengh renamed this task from Fixit Vue: When clicking on a just-initialized lookup component which has an existing value, don't show "No results found" to When clicking on a just-initialized lookup component which has an existing value, don't show "No results found".
DVrandecic raised the priority of this task from Low to Medium.
DVrandecic moved this task from To Triage to Engineering Backlog on the Abstract Wikipedia team board.

Change #1175069 had a related patch set uploaded (by Genoveva Galarza; author: Genoveva Galarza):

[mediawiki/extensions/WikiLambda@master] Show selected option instead 'no results found' in lookup dropdown

https://gerrit.wikimedia.org/r/1175069

Updated selector so that:

  • if there's an ongoing lookup search: show search results,
  • if there's an ongoing lookup search and nothing was found: show 'No results found'
  • if there's no ongoing search, but the user clicks the field: show selected item
  • if there's no ongoing search, but the user clicks an empty field: show suggestions

selector-lookup-results.gif (635×564 px, 621 KB)

gengh changed the task status from Open to In Progress.Aug 1 2025, 11:06 AM
gengh claimed this task.

Change #1175069 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Show selected option instead 'no results found' in lookup dropdown

https://gerrit.wikimedia.org/r/1175069