I'm on drupal.org commenting on an issue, or in general using a node edit form in Drupal.
I want to change one of the tags from the existing "Needs Documentation" to "Needs Update Documentation". It's in the middle of a list of tags the issue has been tagged with. Let's say the list is API Change, Needs Documentation, UI Freeze.
I go to where Needs Documentation is and start typing Update in the middle of that tag.
In Drupal 7: I get a type-ahead drop-down box, but it contains suggestions for the UI Freeze tag, not the tag I am actually editing.
In Drupal 8: No suggestions are offered at all in the middle of the list.
To reproduce in a clean Drupal install:
- Install with Standard profile.
- Go to node/add/article to add a new Article. Create one with several tags, such as cat, dog, fish, gerbil
- Create a new article. Go to the Tags field. Type in a tag or two, then go back and attempt to edit one of the earlier tags.
Fix the auto-complete so that it detects where you are in the tag list, looks for suggestions matching the tag you are in, and puts the replacements in the right place when you're done choosing your selection.
Make a viable patch with tests.
User interface changes
The tag auto-complete will work properly when you're in the middle of a tag list.
FAILED: [[SimpleTest]]: [MySQL] 36,611 pass(es), 5 fail(s), and 3 exception(s).
FAILED: [[SimpleTest]]: [MySQL] 36,834 pass(es), 30 fail(s), and 33 exception(s).
FAILED: [[SimpleTest]]: [MySQL] 36,756 pass(es), 31 fail(s), and 33 exception(s).
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch autocomplete_cursor-992020-35_0.patch. Unable to apply patch. See the log in the details link for more information.