feat(datetime): inputModeChanged; add enterInputMode/exitInputMode by vunizhona · Pull Request #30677 · ionic-team/ionic-framework

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