Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-26501

Console error: Cannot read properties of undefined (reading 'querySelectorAll') - if host/template form is closed, after some data was added to macro field

XMLWordPrintable

    • Sprint candidates

      Steps to reproduce:
      Precondition: use Chrome or Edge browser

      1. Open Data collection -> Hosts
      2. Click on the existing host
      3. Click on Macro tab
      4. Select Macro field, start typing the text
      5. Press ESC

      Note: same issue can be reproduced with template.

      Result:
      Console error is displayed:

      Uncaught TypeError: Cannot read properties of undefined (reading 'querySelectorAll')
          at HostMacrosTabIndicatorItem.getValue (jsLoader.php?lang=en_US&ver=7.4.0rc1&showGuiMessaging=1:40001:48)
          at HostMacrosTabIndicatorItem.addAttributes (jsLoader.php?lang=en_US&ver=7.4.0rc1&showGuiMessaging=1:39981:63)
          at MutationObserver.<anonymous> (jsLoader.php?lang=en_US&ver=7.4.0rc1&showGuiMessaging=1:40023:10)
      

      See video:

      Expected:
      No errors.

            zabbix.dev Zabbix Development Team
            ngogolevs Nikita Gogolevs
            Team B
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: