Description
Steps to reproduce:
- Go to https://www.wikifunctions.org/wiki/Z11
- Click on "37 languages" in the about widget
- Focus on the "Search language" bar: the "Cancel" button is made visible
- Type something in the search bar
- Exit the language window
- 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
- Before closing this task, review one by one the checklist available here: https://www.mediawiki.org/wiki/Abstract_Wikipedia_team/Definition_of_Done#Front-end_Task/Bug_Completion_Checklist