Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

[BUG] - Events are not tracked using Angular Material - Autocomplete & mat-option

Open
#72 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 5 days

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
angular, javascript
Domain
frontend

Research direction

Start with the Angular Material mat-autocomplete and mat-option reproduction shown in the issue, then inspect how event tracking handles option selection compared with buttons. Confirm the fix by reproducing the example and verifying that selecting an option records an event named "option".

Written by the indexing model from the issue text.

Description

enhancement

Description/Screenshot
I've got a couple of mat-option from Angular Material in a mat-autocomplete and would like to track when an event is selected. Unfortunately, this does not happen.
It works fine on other elements, like buttons.

Steps to Reproduce

<mat-autocomplete #auto="matAutocomplete">
  <mat-option *ngFor="let option of options" [value]="option" data-test-id="option">
    {{option}}
  </mat-option>
</mat-autocomplete>

Expected behavior
An event with name "option" is being tracked.

Dominant language
JavaScript
Stars
36
Forks
20
Avg merge
5d 13h
Merged PRs (30d)
9

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/applicationinsights-angularplugin-js

All issues in microsoft/applicationinsights-angularplugin-js

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.