Skip to content

fix(datetime): don't setActiveParts from month/year wheels when multiple=true#31248

Merged
ShaneK merged 5 commits into
ionic-team:mainfrom
droc101:29673
Jun 26, 2026
Merged

fix(datetime): don't setActiveParts from month/year wheels when multiple=true#31248
ShaneK merged 5 commits into
ionic-team:mainfrom
droc101:29673

Conversation

@droc101

@droc101 droc101 commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Issue number: resolves #29673


What is the current behavior?

Using the month/year selection wheels on an ion-datetime with multiple=true changes the selection in an unintuitive manner and changing the value of one of the wheels often reverts the value of the other wheel.

What is the new behavior?

  • The month and year wheels in an ion-datetime no longer change the selection when multiple=true
  • The behavior of a single-select ion-datetime is unchanged.
  • The fix has only been applied to renderMonthPickerColumn and renderYearPickerColumn, as per the docs, the multiple property is only supported on presentation=date preferWheel=false, which only shows those two wheels.
  • Four new datetime e2e tests have been added to test these changes

Does this introduce a breaking change?

  • Yes
  • No

droc101 added 3 commits June 26, 2026 11:01
…ple=true

change event handlers for ion-picker-columns in renderMonthPickerColumn and renderYearPickerColumn to not call setActiveParts when multiple=true

closes ionic-team#29673
@droc101 droc101 requested a review from a team as a code owner June 26, 2026 16:19
@droc101 droc101 requested a review from OS-jacobbell June 26, 2026 16:19
@vercel

vercel Bot commented Jun 26, 2026

Copy link
Copy Markdown

@droc101 is attempting to deploy a commit to the Ionic Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions Bot added the package: core @ionic/core package label Jun 26, 2026

@ShaneK ShaneK left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, straightforward fix. Just a few change requests

Comment thread core/src/components/datetime/test/basic/datetime.e2e.ts Outdated
Comment thread core/src/components/datetime/test/basic/datetime.e2e.ts Outdated
Comment thread core/src/components/datetime/test/basic/datetime.e2e.ts Outdated
Comment thread core/src/components/datetime/datetime.tsx
Comment thread core/src/components/datetime/test/basic/datetime.e2e.ts Outdated
@droc101 droc101 requested a review from ShaneK June 26, 2026 17:24

@ShaneK ShaneK left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, nice work 🎉

@ShaneK ShaneK enabled auto-merge June 26, 2026 17:31
@ShaneK ShaneK added this pull request to the merge queue Jun 26, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jun 26, 2026
@ShaneK ShaneK added this pull request to the merge queue Jun 26, 2026
Merged via the queue into ionic-team:main with commit bf46a3d Jun 26, 2026
49 of 50 checks passed
@droc101 droc101 deleted the 29673 branch June 26, 2026 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: core @ionic/core package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: ion-datetime, error when selecting the year and month when [multiple] is true

2 participants