Page MenuHomePhabricator

Language dialog search bar: close button should only be visible when search field is focused
Closed, ResolvedPublicBUG REPORT

Description

Description

Steps to reproduce:

  1. Go to https://www.wikifunctions.org/wiki/Z11
  2. Click on "37 languages" in the about widget
  3. Focus on the "Search language" bar: the "Cancel" button is made visible
  4. Type something in the search bar
  5. Exit the language window
  6. Open again the language window

Observed behavior:

  • ✅ The search field bar is empty (initialized to blank value)
  • ✅ The search field bar is focused out
  • ❌ The "Cancel" button beside the bar is visible

Expected behavior (Acceptance criteria):

  • The "Cancel" button beside the search bar should only be visible when the search bar is active (focused on)
  • The behavior should be the same in the Multilingual string dialog

Completion checklist

Event Timeline

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

[mediawiki/extensions/WikiLambda@master] ZMultilingualStringDialog: use server-side language mapping to get language labels

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

Change #1191016 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] ZMultilingualStringDialog: use server-side language mapping to get language labels

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

Jdforrester-WMF changed the task status from Open to In Progress.Sep 30 2025, 6:22 PM

Tested on wikifunctions.org and confirmed it works as expected