ApplicationInsights-JS
ApplicationInsights-JS copied to clipboard
[BUG] Click Analytics config TrackElementsType does not filter elements as expected
Changes made in https://github.com/microsoft/ApplicationInsights-JS/pull/2504 (https://github.com/microsoft/ApplicationInsights-JS/commit/b5a24d524bc0cae3c48c7010d88cef5f982449c8) introduced an issue when evaluating if events exist inside trackElementsType list .
element.control && _clickCaptureElements[element.control.tagName.toUpperCase() proceeds the array values instead of array indexes.