Page MenuHomePhabricator

Click on tags of (Users|Titles)MultiselectWidget result in TypeError: Cannot read properties of null
Open, Needs TriagePublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • In LocalSettings.php
$wgEnableUserEmailMuteList = true;
$wgEnableUserEmail = true;
$wgEmailAuthentication = false;
  • Navigate to Special:Preferences
  • Input and choose a user for the "Prohibit these users from emailing me“ preference.
  • Click on the tag added to that widget.

What happens?:

Uncaught TypeError: Cannot read properties of null (reading 'scrollElementIntoView')
    at OO.ui.SelectWidget.scrollItemIntoView
    at OO.ui.MenuTagMultiselectWidget.onTagSelect
    ...

(The same for TitlesMultiselectWidget, can be tested on Special:Block)

What should have happened instead?:

The tag should be removed and its value set into the input area for edit.

Software version (skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):