Combo boxes in Special:ApiSandox > main do not show what is typed
Open, Needs TriagePublic

Description

This is rather confusing as what gets typed do not show up. Probably shifting to an input with <select> options might help ? Need to check what OOJS component are used here though.

Restricted Application added subscribers: TerraCodes, Aklapper. · View Herald TranscriptMay 20 2017, 9:48 AM
Florian added a subscriber: Florian.

Hi @01tonythomas,

I'm not sure, what exactly you mean, yould you give some more information? If I type in the select field, it will select and highlight the one, which matches my typed string :)

Hi @01tonythomas,

I'm not sure, what exactly you mean, yould you give some more information? If I type in the select field, it will select and highlight the one, which matches my typed string :)

I was wondering why what I typed never turns up on the input section of the <select>. Typically I would expect something like:

Florian claimed this task.May 20 2017, 12:10 PM

The only way of doing it with the currently available widgets is with a ComboBoxInputWidget. I'll propose a change :)

Change 354673 had a related patch set uploaded (by Florianschmidtwelzow; owner: Florianschmidtwelzow):
[mediawiki/core@master] Change DropdownWidgets to ComboBoxInputWidgets

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

Anomie added a subscriber: Anomie.EditedMay 20 2017, 8:04 PM

What you type doesn't show up in a normal HTML <select> either, at least not in any browser I've ever used. The main difference I see is that a Firefox <select> immediately "selects" the currently highlighted value in the widget (no way to cancel if you change your mind) while the ooui dropdown needs an option to be explicitly selected.

Allowing people to enter random values and rejecting them if they aren't what's in the dropdown seems like poor UI compared to the existing use of dropdown widgets that don't allow selecting invalid values in the first place. Unless Design thinks otherwise, I'm inclined to decline this task.

Change 354673 abandoned by Florianschmidtwelzow:
Change DropdownWidgets to ComboBoxInputWidgets

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

Florian removed Florian as the assignee of this task.May 21 2017, 8:11 AM
Florian removed projects: Patch-For-Review, Easy.