ionic-framework
ionic-framework copied to clipboard
feat: datetime multiple select needs a label on how many dates are selected
Prerequisites
- [X] I have read the Contributing Guidelines.
- [X] I agree to follow the Code of Conduct.
- [X] I have searched for existing issues that already report this problem, without success.
Ionic Framework Version
- [ ] v4.x
- [ ] v5.x
- [X] v6.x
- [ ] Nightly
Current Behavior
In Ionic 6.2 we introduced a feature for ion-datetime
that lets users select multiple dates (with presentation="date"
). As part of these changes, we found that the header in MD mode was confusing as it only showed one date:
.
We considered other options such as:
- Showing all selected dates.
- Showing the current selected dates and then a count for the remaining n-1 (I.e. Thu, Jul 21 and 4 other dates)
- Showing the number of dates selected (I.e. 5 dates)
Additional considerations such as how localization will work for this feature made us decide to not move forward with changes to the header text until we could do more research and collect feedback from the community. As a result, the selected date will not appear on the MD datetime when multiple="true"
. This temporary restriction also applies to the new ion-datetime-button
.
We plan to prioritize addressing this, and we would also appreciate feedback from the community regarding this behavior.