title: In Angular, onSelectionChange is not getting invoked for angular mat-option
body: <p>I have a mat-form-field which contains an input and a mat-autocomplete that contains a mat-option. The input has (blur) event while the mat-option has (onSelectionChange) event. </p>
  
  <p>The problem I have is that when I select an item, the blur is invoked before the onSelectionChange event of the mat-option. The method for the blur event empties the input in case the value doesn't exist in the drop down. In case I remove the (blur) event of the input then (onSelectionChange) gets invoked. I need this to get invoked before the (blur) event. </p>
  
  <p>After some research I found that I can use .setTimeOut inside the function for the (blur) which allows its body to be invoked after the function for (onSelectionChange), however, with this fix, focusing away from the input will delay emptying the input if it has a wrong value.</p>
  
  <p>Here is the html code I have:</p>
  
  <pre><code>&lt;mat-form-field [style.width.%]="fieldWidthPercentage"&gt;
      &lt;input matInput #tagsInput (blur)="checkIfMatch()"&gt;
      &lt;mat-autocomplete #auto="matAutocomplete"&gt;
        &lt;mat-option *ngFor="let item of filteredAutoCompleteItems | async" 
        (onSelectionChange)="selected(item)" [value]="item"&gt;
        {{ item.name }}
      &lt;/mat-option&gt;
      &lt;/mat-autocomplete&gt;
  &lt;/mat-form-field&gt;
  </code></pre>
  
  <p>here is the function for the (blur) event:</p>
  
  <pre><code>checkIfMatch() {
      setTimeout(() =&gt; {
      // . . .
      }, 1000);
    }
  }
  </code></pre>