"Uncaught TypeError: item is null" when clicking on category translation
Open, LowPublic

Description

Original report

When I was finishing the translation of [[en:Reflection symmetry]] to [[pt:Simetria de reflexão]], the two categories from the English Wikipedia did not exist in Portuguese. So, I typed them in the box available in the translation. Then, when I clicked on the label one of these categories, I got the following error in the console:

Uncaught TypeError: item is null
load.php:320:783
    jQuery 5
        scrollItemIntoView
        onTagSelect
        emit
        emit
        select
    <anonymous> self-hosted:1161
    jQuery 2
        dispatch
        handle

Screenshot from 2020-10-20 06-41-55.png (768×1 px, 193 KB)

Steps to reproduce

  1. Start translating an article in CX
  2. Add a category
  3. Click the name of the added catetory

Trace

Uncaught TypeError: Cannot read properties of null (reading 'scrollElementIntoView')
    at OoUiMenuSelectWidget.OO.ui.SelectWidget.scrollItemIntoView (SelectWidget.js:419)
    at CategoryMultiselectWidget.OO.ui.MenuTagMultiselectWidget.onTagSelect (MenuTagMultiselectWidget.js:198)
    at CategoryMultiselectWidget.OO.EventEmitter.emit (oojs.js?0db85:901)
    at CategoryTagItemWidget.OO.EventEmitter.emit (oojs.js?0db85:901)
    at CategoryTagItemWidget.OO.ui.TagItemWidget.select (TagItemWidget.js:218)
    at HTMLDivElement.dispatch (jquery.js?28492:5430)
    at HTMLDivElement.elemData.handle (jquery.js?28492:5234)

Impact

None known.

Event Timeline

Nikerabbit updated the task description. (Show Details)
Nikerabbit moved this task from Check & Move to Bugs on the ContentTranslation board.
Nikerabbit subscribed.

Marked as low priority, given there is no known user impact. Main issue is be logspam.