Page MenuHomePhabricator

[betalabs] Special:Search - Uncaught TypeError: event.currentTarget is null when window resized
Closed, ResolvedPublic

Description

Notes:

  • the console error is displayed only in betalabs env
  • the error is displayed for both Vector skins - new and old
  • no impact on UI/search functionality
  1. On betalabs go to Special:Search
  2. When the page loads, start resizing the browser window - the following error is displayed
Uncaught TypeError: event.currentTarget is null

updateValues jQuery
    jQuery 
    runScript 
    execute 
    doPropagation 
    (Async: requestIdleCallback handler)
    requestIdleCallback self-hosted:1356
    setAndPropagate
    implement 
    <anonymous> jQuery

Seems to be complaining on

module.exports = function onDocumentResize()
      {
        const width = ref(window.innerWidth);
        const height = ref(window.innerHeight);
        let timeout = null;
        const updateValues = function (event) {
          width.value = event.currentTarget.innerWidth;
          height.value = event.currentTarget.innerHeight;
        };