Bug reportDec 1, 2026· 0:33· 12 views
MUI Slider: ArrowRight from between-marks value jumps to wrong mark (step=null)
0:33 total
Comments · 0
Be the first to comment.
Bug reportby SceneRecap AI
mediumSlider keyboard navigation when step={null}. Look at the logic that finds the next mark on ArrowRight. It probably finds the index of the current value in marks, or of the nearest mark, and then adds 1. With 25 that picks 30 as the current mark and moves on to 40. It should pick the smallest mark greater than the current value.
os: macOSdpr: 1page: MUI Slider: ArrowRight from between-marks value (#49893)locale: en-USbrowser: Chromium 151.0.7922.34timezone: Europe/Berlinviewport: 1280x720
Repro steps
- 1.Render a Slider with step={null} and marks at 10 / 20 / 30 / 40, with a controlled value of 25. This value sits between marks 20 and 30.
- 2.Click the Bug slider thumb to focus it.
- 3.Press ArrowRight.
- 4.Observe that the value becomes 40 instead of 30.
Expected
From value 25, ArrowRight moves the thumb to the next higher mark, 30. The control case does this: from 20, ArrowRight goes to 30.
Actual
From value 25, ArrowRight moves the thumb to 40. It skips mark 30.
Evidence
visualControl card: the value starts at 20 on a mark. Both cards use step={null} with marks at 10 / 20 / 30 / 40.
visualThe Bug card starts at value: 25, between marks 20 and 30.
visualControl case works. After the Control slider thumb is clicked at 12.3s and ArrowRight is pressed at 13.3s, the value shows 30, as expected.
visualBug case: after the Bug slider thumb is clicked at 19.4s and ArrowRight is pressed at 20.4s, the value shows 40. The thumb sits on the 40 mark.
consolewarn: BUG: value was 25, pressed ArrowRight, value now 40 (expected 30, got 40, wrong mark)
visualBanner: BUG: value=25, ArrowRight → 40 (expected 30, next higher mark)
visualThe static label on the Bug card says Actual: → 10. This conflicts with the observed result of 40. The label is not reliable.
Issue markdown (copy-paste ready)
## Summary
With `step={null}` and marks at 10 / 20 / 30 / 40, pressing ArrowRight while the value is 25 (between marks 20 and 30) moves the value to **40**. It should move to the next higher mark, **30**.
## Environment
- Chromium 151.0.7922.34, macOS
- Viewport 1280x720, dpr 1
- Test page: MUI Slider: ArrowRight from between-marks value (#49893)
## Steps to reproduce
1. Render `<Slider step={null} marks={[10,20,30,40]} value={25} />`, controlled (1.0s).
2. Click the slider thumb to focus it (19.4s).
3. Press ArrowRight (20.4s).
## Expected
The value becomes 30, the next higher mark.
## Actual
The value becomes 40 (21.0s). Mark 30 is skipped.
## Control (works)
With a start value of 20, which is on a mark, ArrowRight moves the value to 30 as expected (pressed at 13.3s, value 30 at 15.0s).
## Evidence
- 21.0s: the Bug card shows `value: 40` and the thumb sits at mark 40.
- 21.9s console warn: `BUG: value was 25, pressed ArrowRight → value now 40 (expected 30, got 40)`
- 25.0s banner: `BUG: value=25, ArrowRight → 40 (expected 30, next higher mark)`
- Note: the static card label reads `Actual: → 10`. The observed behavior is 40.
## Suspected area
The Slider keyboard handler for `step={null}`. It seems to select the next mark by index from the nearest or rounded mark instead of choosing the smallest mark greater than the current value.
*Recorded with SceneRecap.*This report was written by SceneRecap from a screen recording. Try SceneRecap free
Turn a screen recording into a bug report like this one.
Repro steps, expected vs actual and the console and network evidence, each with a timestamp. On every plan, Free included.
Try SceneRecap free →