Skip to content

FSHSP-118 fix(ui-datepicker): stop the field click from stealing focu… - #85

Merged
LBU4SH merged 1 commit into
mainfrom
fix/range-field-click-opens-grid
Aug 24, 2026
Merged

FSHSP-118 fix(ui-datepicker): stop the field click from stealing focu…#85
LBU4SH merged 1 commit into
mainfrom
fix/range-field-click-opens-grid

Conversation

@LBU4SH

@LBU4SH LBU4SH commented Aug 24, 2026

Copy link
Copy Markdown
Collaborator

…s to the grid

open()'s rove-into-grid used to key off selectionMode() !== 'single' — meant to restore the calendar icon's own behavior (icon click = "I want the grid") after range/multiple stopped being hardcoded read-only. But the wrapper's (click)="open()" fires on ANY click in the field, including the click meant to place the caret and start typing — so the moment range got its own live mask, clicking the field to type immediately roved focus back out into the grid, making typing impossible.

open() now takes a viaIcon flag (threaded through toggle()): the calendar icon passes true and still roves; the field's own click passes nothing and keeps focus in the input, in every mode, matching single's pre-existing behavior. Verified live in Storybook: field click keeps focus on the input, icon click still roves to the selected grid cell.

…s to the grid

open()'s rove-into-grid used to key off `selectionMode() !== 'single'`
— meant to restore the calendar icon's own behavior (icon click =
"I want the grid") after range/multiple stopped being hardcoded
read-only. But the wrapper's (click)="open()" fires on ANY click in
the field, including the click meant to place the caret and start
typing — so the moment range got its own live mask, clicking the
field to type immediately roved focus back out into the grid,
making typing impossible.

open() now takes a viaIcon flag (threaded through toggle()): the
calendar icon passes true and still roves; the field's own click
passes nothing and keeps focus in the input, in every mode, matching
single's pre-existing behavior. Verified live in Storybook: field
click keeps focus on the input, icon click still roves to the
selected grid cell.
@LBU4SH
LBU4SH force-pushed the fix/range-field-click-opens-grid branch from fd03119 to 56ab2c5 Compare August 24, 2026 18:15
@LBU4SH
LBU4SH merged commit 5e279ac into main Aug 24, 2026
2 of 3 checks passed
@LBU4SH
LBU4SH deleted the fix/range-field-click-opens-grid branch August 24, 2026 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant