Ion-datetime distinct in which presentation date selection are made (v6)

Hi! I’m rendering ion-datetime within ion-popover. I need to close popover when user selected particular date. I was expecting to use ionChange event for this. The problem is when user switches to the year selection presentation mode and changes year or month the ionChange is also emitted. So this way user can’t return to the grid presentation mode to select particular date within the month because ionChange already emitted and popover is closed. Any idea of how to distinct ionChange event emitted in different presentation modes? Or may be block ionChange when year changed?
I can add “Done” button, of course, but this adds another step to the selection which makes UX worse.

1 Like