Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat(datetime): inputModeChanged; add enterInputMode/exitInputMode#30677

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
vunizhona wants to merge1 commit intoionic-team:main
base:main
Choose a base branch
Loading
fromvunizhona:feat/datetime-picker-public-API-to-programmatically-enter-numeric-input-mode-30634

Conversation

@vunizhona
Copy link
Contributor

Issue number:resolves#30634


What is the current behavior?

  • enterInputMode/exitInputMode is not available in the datetime picker
  • inputMode status updates are not available

What is the new behavior?

  • New event: inputModeChanged on ion-datetime with payload { active: boolean }.
  • New methods: enterInputMode(scope?: 'all'|'hour'|'minute', options?: { focus?: boolean }) and exitInputMode().
  • Restrict to time, date-time, time-date, and only when numeric columns exist; robust detection (class or [numeric-input]).
  • Re-emit only when applicable; attach/detach listener to avoid duplicates.
  • Fallback event emission in tests when picker methods aren’t available; deduped via internal state.
  • Dev-only warnings via Build.isDev.

Does this introduce a breaking change?

  • Yes
  • No

datetime: restrict enter/exit to time with numeric columns; re‑emit only when present; add robust detection + fallback (tests) with internal dedupe; gate warnings behind Build.isDev.picker: dedupe ionInputModeChange, debounce exit inactive, toggle aria-hidden around focus.tests: assert single active/inactive; no emit on repeated enter; none for unsupported presentations.
@vunizhonavunizhona requested a review froma team as acode ownerSeptember 10, 2025 12:46
@vercel
Copy link

vercelbot commentedSep 10, 2025
edited
Loading

The latest updates on your projects. Learn more aboutVercel for GitHub.

ProjectDeploymentPreviewCommentsUpdated (UTC)
ionic-frameworkReadyReadyPreviewCommentSep 10, 2025 0:48am

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@gnbmgnbmAwaiting requested review from gnbmgnbm is a code owner automatically assigned from ionic-team/framework

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

package: angular@ionic/angular packagepackage: core@ionic/core packagepackage: vue@ionic/vue package

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

feat(datetime/picker): public API to programmatically enter numeric input mode

1 participant

@vunizhona

[8]ページ先頭

©2009-2025 Movatter.jp