Fabric.Cashmere icon indicating copy to clipboard operation
Fabric.Cashmere copied to clipboard

selectedTabChange emitting twice on initial load of hc-tab-set

Open robertjorg opened this issue 3 years ago • 0 comments

Summary

selectedTabChange is being emitted twice on the initial load of hc-tab-set. I was able to reproduce using the Cashmere library.

Reproduction

Steps to reproduce:

  1. Set up a hc-tab-set with an action when selectedTabChange is emitted
  2. When selectedTabChanged emitted take an action (when I reproduced in the Cashmere library I added and alert to tabs-horizontal-example.component.ts)
  3. You will see that the action is taken twice.

Stackblitz reproduction (click the "Edit on Stackblitz" link on a component example and fork the template):

https://stackblitz.com/edit/angular-71wgdt?file=src%2Fapp%2Ftabs-horizontal%2Ftabs-horizontal-example.component.ts

robertjorg avatar Aug 23 '22 22:08 robertjorg