Skip to content

Commit bbd55e9

Browse files
committed
fix(datetime,picker): guard/dedupe input mode events
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.
1 parent b49ba6b commit bbd55e9

File tree

8 files changed

+402
-752
lines changed

8 files changed

+402
-752
lines changed

core/api.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,10 @@ ion-datetime,prop,value,null | string | string[] | undefined,undefined,false,fal
545545
ion-datetime,prop,yearValues,number | number[] | string | undefined,undefined,false,false
546546
ion-datetime,method,cancel,cancel(closeOverlay?: boolean) => Promise<void>
547547
ion-datetime,method,confirm,confirm(closeOverlay?: boolean) => Promise<void>
548+
ion-datetime,method,enterInputMode,enterInputMode(scope?: "all" | "hour" | "minute", options?: { focus?: boolean; }) => Promise<void>
549+
ion-datetime,method,exitInputMode,exitInputMode() => Promise<void>
548550
ion-datetime,method,reset,reset(startDate?: string) => Promise<void>
551+
ion-datetime,event,inputModeChanged,{ active: boolean; },true
549552
ion-datetime,event,ionBlur,void,true
550553
ion-datetime,event,ionCancel,void,true
551554
ion-datetime,event,ionChange,DatetimeChangeEventDetail,true
@@ -1242,6 +1245,7 @@ ion-note,css-prop,--color,md
12421245

12431246
ion-picker,shadow
12441247
ion-picker,prop,mode,"ios" | "md",undefined,false,false
1248+
ion-picker,method,enterInputMode,enterInputMode(columnEl?: HTMLIonPickerColumnElement, focusInput?: boolean) => Promise<void>
12451249
ion-picker,css-prop,--fade-background-rgb,ios
12461250
ion-picker,css-prop,--fade-background-rgb,md
12471251
ion-picker,css-prop,--highlight-background,ios

0 commit comments

Comments
 (0)