Repository navigation
Commit 57aa93c
authored
feat(NumberInput): a held stepper repeats into the draft, commits once (#8205)
feat(NumberInput): a held stepper repeats into the draft, commits once
Holding a stepper with a mouse or pen repeats the step, the first repeat
after 0.5 s and then on a ramp from 250 ms down to 50 ms. Each repeat
writes the field's draft, and the hold commits once through onChange,
on release or pointer cancel. The click that follows a release steps
nothing, so a hold makes one commit. A press released before 0.5 s is
a click: it steps and commits at once. A finger keeps its click's single
step. FR5 of the NumberInput record states the hold, with a
verification row.1 parent 7cda408 commit 57aa93c
5 files changed
Lines changed: 758 additions & 27 deletions
File tree
- .changeset
- docs/specs/components/NumberInput
- packages/core/src/NumberInput
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
0 commit comments