bug: picker-column setFocus() does not focus the column

Offen
#30,634 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

  • #30677 von @vunizhona — ohne Merge geschlossen

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
35/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
typescript

Rechercherichtung

Beginne damit, die in der issue referenzierte Implementierung des numerischen Eingabemodus von ion-picker und ion-datetime zu lesen, einschließlich des internen Eingabestatus und der durch ein tatsächliches Tippen ausgelösten Events. Als abgeschlossen gilt die Arbeit, wenn eine dokumentierte öffentliche API zum Ein- und Beenden mit dem angeforderten Umfang und den Fokusoptionen vorhanden ist und die programmatische Verwendung das bestehende Verhalten des numerischen Modus widerspiegelt.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

triage
Prerequisites
Describe the Feature Request

ion-datetime (wheel) + ion-picker supports a “numeric input mode” when the user taps a numeric column: the picker focuses an internal , shows the OS keypad, and lets users type to update both hour and minute columns.

There’s currently no public API to trigger the same behavior programmatically (e.g., from a button or accessibility shortcut).

Describe the Use Case
  • Accessibility: provide a keyboard/assistive-tech control to enter numeric mode.

  • UX: offer an “Edit time” button that behaves exactly like a tap.

  • Automated testing & consistency across platforms.

Describe Preferred Solution

Expose a safe, documented method:

// on ion-picker (and used by ion-datetime internally)
enterInputMode(column?: HTMLIonPickerColumnElement | 'hour' | 'minute', options?: { focus?: boolean }): void;
exitInputMode(): void;

// or on ion-datetime (delegates to internal picker)
enterInputMode(scope?: 'all' | 'hour' | 'minute', options?: { focus?: boolean }): void;

Behavior should mirror a real tap:

  • Set internal input-mode state (multi-column when scope === 'all').

  • Emit the same event columns currently listen for.

  • focus the hidden input to open the keypad.

Describe Alternatives

No response

Related Code

Any datetime/picker

Additional Information

Without a public API, it’s impossible to trigger numeric input mode via assistive technology (e.g., VoiceOver/ TalkBack actions, hardware keyboard shortcuts, or custom accessibility buttons). This can prevent certain users from easily adjusting time values, especially those with motor impairments who find wheel scrolling difficult.

Vorherrschende Sprache
TypeScript
Sterne
52.8k
Forks
13.3k
Ø Merge
3 T. 1 Std.
Gemergte PRs (30 T.)
86

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus ionic-team/ionic-framework

Alle Issues in ionic-team/ionic-framework

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.