You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: ion-segment (ionChange) trigger is not consistent on start #19204
ion-segment (ionChange) trigger is not consistent when opening multiple pages containing ion-segment.
Imagine 2 tab pages, named Tab2 and Tab3 for convenience, both with ion-segment. If you open the first one Tab2 the ionChange of the ion-segment is not triggered (as expected), if you afterwards (without restarting the app) open the Tab3 page its ionChange is fired (Unexpected).
This also works vice-versa. Restarting the app and opening first Tab3 will not fire the ionChange of the ion-segment, afterwards opening Tab2 will fire ionChange which is unexpected.
Expected behavior:
One would expect that all pages with ion-segment wouldn't fire its ionChange upon opening. Regardless of which page was opened first.
Steps to reproduce:
Using the simple tabs starter. I've been able to reproduce this problem. By modifying Tab2 and Tab3 to include an ion-segment with (ionChange). Both do a simple console.log output of the event.
Additional Info
This bug wasn't present in ionic/angular@4.3.0 My best guess is that something changed to the ion-segment/(ionChange) behavior between version 4.3.0 and 4.7.4
changed the title [-]bug: ion-segment (ionChange) trigger is not consistent[/-][+]bug: ion-segment (ionChange) trigger is not consistent on start[/+]on Aug 27, 2019
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Activity
[-]bug: ion-segment (ionChange) trigger is not consistent[/-][+]bug: ion-segment (ionChange) trigger is not consistent on start[/+]fix(segment): don't emit ionChange until didLoad
fix(segment): don't emit ionChange until didLoad (#19218)
fix(segment): don't emit ionChange until didLoad (#19218)
ionitron-bot commentedon Sep 28, 2019
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.