Guys, I believe I’ve found a bug.
I have a ion-datetime which I’m using on a filter on my app.
The issue is that if the user selects today’s date, the @ionChange event is not triggered.
a) Steps to reproduce
1 - Do not change anything and simply click “OK”. The @ionChange event won’t be triggered
b) steps to reproduce
1 - change any of the fields (day, month or year) and you can even change it back to the original value
2 - Click on OK and the even WILL be triggered this time
Code to reproduce:
<ion-datetime
id="datetime"
presentation="date"
locale="pt-BR"
@ionChange="setDataNascimentoString($event)"
cancel-text="Cancelar"
done-text="Ok"
:show-default-buttons="true"
:prefer-wheel="true"
></ion-datetime>
setDataNascimentoString(event){
console.log(event);
}