To reproduce the bug a field with autocompletion is needed (I tried on token and combobox inputs).
Set the following settings on LocalSettings.php
$wgPageFormsAutocompleteOnAllChars = true; $wgPageFormsMaxLocalAutocompleteValues = 20;
Replace 20 by a number less than the number of values available so remote autocompletion is used.
As an example assume that one possible value of the field is "New York".
If I start typing "Ne", autocompletion works and "New York" is suggested.
If I start typing "Yo", autocompletion does not work, "New York" is not suggested.
In general, autocompletion only matches on the beginning of the string (not even on the beginning of a word).
My setup is the following:
- Mediawiki 1.32
- PHP 7.2.19
- MariaDB 10.1.38
- Page Forms 4.5
- Cargo 2.1.2
I will try to investigate the problem and make a patch if I have some free time.