Repository navigation
Commit fc44bc3
authored
fix(DateTimeInput): a press in the time input keeps the preset-time list open (#9459)
* fix(DateTimeInput): a press in the time input keeps the preset-time list open
The time list was a popover="auto" layer, and the browser's light dismiss
counts a press in a text input as outside, so clicking into the time text
closed the list the click had just opened. The list is now a manual popover
that uses Layer's shared useOutsidePress: a press on the time field or in
the list is inside (the list counts by its own layer id, since it may be
hosted outside the field); a press anywhere else closes it; the existing
blur close and Escape are unchanged.
Records: component:DateTimeInput FR7 states the press rule and its
verification row names the test; architecture:layer-runtime names the time
list beside BaseTypeahead's and drops it from the auto-popover gap.
Test: a press in the time input or the list keeps it open and a press
elsewhere closes it (fails on main).
* Merge branch 'main' into fix/datetimeinput-time-press-keeps-list1 parent c117b0c commit fc44bc3
5 files changed
Lines changed: 114 additions & 38 deletions
File tree
- .changeset
- docs
- architecture
- specs/components/DateTimeInput
- packages/core/src/DateTimeInput
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
299 | 299 | | |
300 | 300 | | |
301 | 301 | | |
302 | | - | |
303 | | - | |
| 302 | + | |
| 303 | + | |
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
307 | | - | |
308 | | - | |
| 307 | + | |
| 308 | + | |
309 | 309 | | |
310 | 310 | | |
311 | 311 | | |
| |||
332 | 332 | | |
333 | 333 | | |
334 | 334 | | |
335 | | - | |
| 335 | + | |
| 336 | + | |
336 | 337 | | |
337 | 338 | | |
338 | 339 | | |
| |||
651 | 652 | | |
652 | 653 | | |
653 | 654 | | |
654 | | - | |
| 655 | + | |
655 | 656 | | |
656 | 657 | | |
657 | 658 | | |
| |||
0 commit comments