Skip to content

bug(MatSlider): MatSliderRangeThumb input width is not changed if the input value is changed dynamically #28206

Closed
@sdiachenko

Description

@sdiachenko

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

No response

Description

The MatSlider does not changes the width of the input[matSliderStartThumb] and the input[matSliderEndThumb] when a user changes the inputs value dynamically.

image

Reproduction

StackBlitz link: https://stackblitz.com/edit/components-issue-pkhpjl?file=src%2Fapp%2Fexample-component.ts
Steps to reproduce:

  1. Refresh the page
  2. Click on "next step" button
  3. Drag the slider's right thumb to right. Drop it.

Expected Behavior

The "end" thumb has the respective value

Actual Behavior

The "start" and "end" thumb are wrong placed

Environment

  • Angular: 15.2.6 - 16.2.1
  • CDK/Material: 15.2.6 - 16.2.1
  • Browser: Safari, Chrome
  • Operating System: macOS, Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2The issue is important to a large percentage of users, with a workaroundarea: material/slider

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions