Using filter picker in gadgets logs JS error 'Object doesn't support property or method includes' in IE 11

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Low
    • 8.0.2, 8.1.0
    • Affects Version/s: 7.5.2, 7.6.0, 7.7.0, 7.8.0, 7.9.0, 7.10.0, 7.11.0, 7.12.0, 7.13.0, 8.0.0
    • Component/s: Dashboard & Gadgets
    • None
    • 7.05
    • Severity 3 - Minor

      Issue Summary

      When clicking one of the existing filter suggested by filter picker on IE 11 a Javascript error is thrown and logged to dev console.

      Environment

      • IE 11

      Steps to Reproduce

      1. Go to a dashboard
      2. Add a gadget which incorporates a filter picker (e.g. Two Dimensional Filter Statistics)
      3. Advance to gadget's configuration
      4. Start typing an existing filter's name in the filter picker
      5. Select one of the displayed suggestions

      Expected Results

      Clicking a suggested filter name sets it as the configured filter.

      Actual Results

      Clicking a suggested filter name does set is as the configured filter but there's also this exception thrown in console

      Object doesn't support property or method 'includes'

      This is because IE 11 does not support 'includes' method. Luckily, the 'includes' method is used here when attempting to send an analytics event (if the analytics events are enabled on the instance) about using the filter picker. This means that the error does not impact the feature or dashboard in any way but just prevents this particular event (selecting a suggestion in filter picker) from being sent.

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

            Assignee:
            Unassigned
            Reporter:
            Pawel Drygas (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: