bug: angular framework bindings, events emitted twice
See original GitHub issuePrerequisites
- I have read the Contributing Guidelines.
- I agree to follow the Code of Conduct.
- I have searched for existing issues that already report this problem, without success.
Ionic Framework Version
- v4.x
- v5.x
- v6.x
Current Behavior
Starting with 6.0.0-beta-7 and including 6.0.0-rc.0, ion-datetime double emits to ionChange after selecting a new date and then tapping Done button.
Expected Behavior
Using 6.0.0-beta-6 ionChange emitted a single event in ion-datetime after selecting a new value and tapping Done button.
Steps to Reproduce
<ion-datetime displayFormat="MMMM DD, YYYY" max="2030-12-31" (ionCancel)="openCalendar = false" (ionChange)="dateSelected($event)" mode="ios" presentation="date" showDefaultButtons="true" size="fixed" showDefaultTitle="true" #ionDatetime class="date-time"> <div slot="title">Select Date</div> </ion-datetime>
Select new date and then tap Done button.
Code Reproduction URL
No response
Ionic Info
Ionic:
Ionic CLI : 6.17.1
Utility:
cordova-res : not installed globally native-run : 1.4.1
System:
NodeJS : v14.15.1 npm : 7.20.5 OS : macOS Big Sur
Additional Information
No response
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:10 (4 by maintainers)
Top GitHub Comments
Hi everyone,
This issue impacts all Ionic components that emit events. We will have a fix for this issue soon.
Thanks! We updated our Angular wrappers in beta 7 to use https://github.com/ionic-team/stencil-ds-output-targets, but it looks like there is an issue that causes events to be emitted twice.