Skip to content

bug(Slider): Page Up/ Page Down buttons increase value but not by 10 steps #27402

Closed
@teodorachiosa

Description

@teodorachiosa

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

14.2.7

Description

According to the documentation, the slider should increase the value by 10 steps when using Page Up/Page Down keys.
It instead increases/decreases by a different number of steps.
image
slidermaterialissuepageupdown

Reproduction

StackBlitz link: 500 Internal server error for Stackblitz.... but the issue can be reproduced on the official Material demo
Steps to reproduce:

  1. Go to: https://material.angular.io/components/slider/examples#slider-configurable
  2. Type '9999' as the max value
  3. Use the Page Up/Page Down keys to increase/decrease value

Expected Behavior

The value is increased/decreased by 10 steps.

Actual Behavior

The value is increased/decreased by 1000 steps for max value 9999,
the value is increased/decreased by 100 steps for max value 1000,
not by 10 steps, like in the documentation.

The step is not set, so I assumed a default of 1 x 10 = 10 steps.

Using the arrows, the value is increased/decreased correctly, by 1 step.
Happens on both angular 15 and 16.

Environment

  • Angular: 15.2.9
  • CDK/Material: 15.2.9
  • Browser(s): Chrome
  • Operating System (e.g. Windows, macOS, Ubuntu): Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    AccessibilityThis issue is related to accessibility (a11y)P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: docsRelated to the documentationarea: material/slidergood first issueThis issue is a good place to start for first time contributors to the projecthelp wantedThe team would appreciate a PR from the community to address this issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions