ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

feat: datetime multiple select needs a label on how many dates are selected

Open liamdebeasi opened this issue 1 year ago • 0 comments

Prerequisites

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: image.

We considered other options such as:

  1. Showing all selected dates.
  2. Showing the current selected dates and then a count for the remaining n-1 (I.e. Thu, Jul 21 and 4 other dates)
  3. 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.

liamdebeasi avatar Jul 21 '22 21:07 liamdebeasi