Skip to content

bug(Slider): Thumbs positions not updating after start and end value updates in the same time as max attribute #31119

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 task
Splinteer opened this issue May 14, 2025 · 0 comments
Labels
needs triage This issue needs to be triaged by the team

Comments

@Splinteer
Copy link

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

I use the slider as a date range selector. It has 2 possibles ranges, by month or by year.
I give the component an array with every periods and the ranger slider is like an index selector to get min and max value.
I have a first toggle button to help me chose which view to render.
When changing view, the value is updated but both thumbs are not rendered at the right positions.

Reproduction

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

  1. Click "View per year"
    2.Click "View per month"

Expected Behavior

The thumb should be positioned where the 35 is on the slider

Actual Behavior

The start value is 35 but the thumb position is 0.

Environment

  • Angular: 19
  • CDK/Material: 18
  • Browser(s): Arc
  • Operating System (e.g. Windows, macOS, Ubuntu): macOS
@Splinteer Splinteer added the needs triage This issue needs to be triaged by the team label May 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage This issue needs to be triaged by the team
Projects
None yet
Development

No branches or pull requests

1 participant