components icon indicating copy to clipboard operation
components copied to clipboard

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

Open sdiachenko opened this issue 2 years ago • 1 comments

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

sdiachenko avatar Nov 29 '23 17:11 sdiachenko

Looks like the "inactive" widths are not getting updated when the slider value is being programmatically updated. I'll look into this more today

wagnermaciel avatar Dec 13 '23 17:12 wagnermaciel

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.