Page MenuHomePhabricator

ZObjectSelector: Fix clearing strategy when option isn't selected and user focuses out
Closed, ResolvedPublicBUG REPORT

Description

Description

Steps to reproduce:

  1. Go to https://wikifunctions.beta.wmflabs.org/wiki/Special:CreateObject
  2. In the "type" selector, type String
  3. Instead of selecting the option "String", simply focus out

Observed behavior:

  • The field looks like a value is selected

Expected behavior (Acceptance criteria):

  • If the written value matches exactly an available option, select it
  • If the written value does not match any available option, clear the field

Completion checklist

Event Timeline

Jdforrester-WMF changed the task status from Open to In Progress.Nov 30 2023, 5:38 PM
Jdforrester-WMF triaged this task as Medium priority.
Jdforrester-WMF moved this task from To Triage to In Progress on the Abstract Wikipedia team board.

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

[mediawiki/extensions/WikiLambda@master] Fix zObjectSelector clear strategy

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

Change #1018758 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Fix zObjectSelector clear strategy

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

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

[mediawiki/extensions/WikiLambda@master] [WIP] Fix ZObjectSelector clear strategy

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

it seems that everything is working as expected. the only minor thing that i've noticed is the following:

  • focus a zobject selector
    • the menu item is displayed, with the item selected set to font weight regular
  • delete some characters
    • the menu item is updated, with the search query highlighted in bold
  • escape focus
  • original content is restored
  • re-focus the zobject selector
  • the menu item is still with the query highlighted in bold

CleanShot 2024-07-02 at 15.27.58.gif (495×800 px, 541 KB)

Change #1019688 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Fix ZObjectSelector clear strategy

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