Page MenuHomePhabricator

WikiLambda UI: Wikidata selectors don't update after re-selecting
Closed, ResolvedPublicBUG REPORT

Description

Description

Steps to reproduce:

  1. Go to https://www.wikifunctions.org/view/en/Z801 (or any function where a Wikidata selector appears)
  2. In the "Try this function" box, where it says "Select a type", type & select Wikidata lexeme
  3. In the "Select Wikidata lexeme" box, type "umbrella" and then select umbrella; English, noun in the drop-down
  4. With the cursor still in the "Select Wikidata lexeme" box, backspace 4 times so just "umbr" shows, and multiple choices appear in the drop-down
  5. Once again, click on umbrella; English, noun

Observed behavior:

  • After clicking, the selector box still shows just "umbr"

Expected behavior (Acceptance criteria):

  • The selector box should immediately be updated to show "umbrella"

Completion checklist

Event Timeline

DSmit-WMF changed the task status from Open to In Progress.Jan 23 2025, 10:53 AM
DSmit-WMF claimed this task.

Change #1113763 had a related patch set uploaded (by Daphne Smit; author: Daphne Smit):

[mediawiki/extensions/WikiLambda@master] Lookup: Fix bug where the selected text didn't update after reselecting the same value

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

Change #1113763 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Lookup: Fix bug where the selected text didn't update after reselecting the same value

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